Properties属性
Optional $all
$all?: readonly any []
Optional $eq
$eq?: TValue
Optional $exists
$exists?: boolean
Optional $expr
$expr?: Record < string , any >
Optional $geo Intersects
$geo
Intersects
?: { $geometry
: Document }
Optional $gt
$gt?: TValue
Optional $gte
$gte?: TValue
Optional $in
$in?: readonly TValue []
Optional $json Schema
$json Schema?: Record < string , any >
Optional $lt
$lt?: TValue
Optional $lte
$lte?: TValue
Optional $max Distance
$max Distance?: number
Optional $mod
$mod?: TValue extends number ? [ number , number ] : never
Optional $ne
$ne?: TValue
Optional $nin
$nin?: readonly TValue []
Optional $options
$options?: TValue extends string ? string : never
Optional $rand
$rand?: Record < string , never >
Optional $regex
$regex
?: TValue extends string ? string | RegExp | BSONRegExp : 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" | BSONType
Optional __id
__id?: undefined
Optional id
id?: undefined
When如果为true
,$exists
matches the documents that contain the field, including documents where the field value is null.true
,则$exists
与包含该字段的文档匹配,包括字段值为空的文档。