Type alias FoundRow<Doc>

FoundRow<Doc>: {
    [K in keyof Doc]-?: DataAPIVector extends Doc[K]
        ? Exclude<Doc[K], string>
        : Doc[K]
}

Represents a row as it's returned by the database by default.

Ensures that all DataAPIVector fields are just returned as DataAPIVector, and not DataAPIVector | string in case vectorize is enabled on any of the vector columns.

Type Parameters

  • Doc