Skip to content

Type Alias: FieldKind

FieldKind = "string" | "number" | "boolean" | "date" | "objectId" | "ref" | "array" | "embedded" | "enum"

Defined in: src/schema/field-types.ts:8

The kind of a field. Drives both runtime type-checking (in the validator) and how the query compiler treats the field (a ref becomes a $lookup, everything else becomes a plain/dotted $match).

Released under the MIT License.