Optional
__id
__id?: undefined
Optional
$all
$all?: readonly any[]
Optional
$exists
$exists?: boolean
Optional
$expr
$expr?: Record<string, any>
Optional
$geoIntersects
$geoIntersects?: { $geometry: Document; } Optional
$jsonSchema
$jsonSchema?: Record<string, any>
Optional
$maxDistance
$maxDistance?: number
Optional
$mod
$mod?: TValue extends number ? [number, number] : never Optional
$options
$options?: TValue extends string ? string : never Optional
$rand
$rand?: Record<string, never>
Optional
$size
$size?: TValue extends readonly any[] ? number : never Optional
$type
$type?: | "string" | "symbol" | "undefined" | "object" | "double" | "array" | "binData" | "objectId" | "bool" | "date" | "null" | "regex" | "dbPointer" | "javascript" | "javascriptWithScope" | "int" | "timestamp" | "long" | "decimal" | "minKey" | "maxKey" | BSON.BSONType
When
true
,$exists
matches the documents that contain the field, including documents where the field value is null.