Properties
Optional $all
$all?: readonly any[]
Optional $bitsAllClear
Optional $bitsAllSet
Optional $bitsAnyClear
Optional $bitsAnySet
Optional $elemMatch
Optional $eq
$eq?: TValue
Optional $exists
$exists?: boolean
Optional $expr
$expr?: Record<string, any>
Optional $geoIntersects
Optional $geoWithin
Optional $gt
$gt?: TValue
Optional $gte
$gte?: TValue
Optional $in
$in?: readonly TValue[]
Optional $jsonSchema
$jsonSchema?: Record<string, any>
Optional $lt
$lt?: TValue
Optional $lte
$lte?: TValue
Optional $maxDistance
$maxDistance?: number
Optional $mod
$mod?: TValue extends number
? [number, number]
: never
Optional $ne
$ne?: TValue
Optional $near
Optional $nearSphere
Optional $nin
$nin?: readonly TValue[]
Optional $not
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" | "date" | "null" | "array" | "int" | "bool" | "timestamp" | "long" | "double" | "decimal" | "objectId" | "binData" | "regex" | "dbPointer" | "javascript" | "javascriptWithScope" | "minKey" | "maxKey" | mongoose.mongo.BSON.BSONType
Optional __id
__id?: never
When
true,$existsmatches the documents that contain the field, including documents where the field value is null.