Interface FilterOperators<TValue>

Type Parameters

  • TValue

Hierarchy

Properties

$all?: readonly any[]
$bitsAllClear?: BitwiseFilter
$bitsAllSet?: BitwiseFilter
$bitsAnyClear?: BitwiseFilter
$bitsAnySet?: BitwiseFilter
$elemMatch?: Document
$eq?: TValue
$exists?: boolean

When true, $exists matches the documents that contain the field, including documents where the field value is null.

$expr?: Record<string, any>
$geoIntersects?: {
    $geometry: Document;
}

Type declaration

$geoWithin?: Document
$gt?: TValue
$gte?: TValue
$in?: readonly TValue[]
$jsonSchema?: Record<string, any>
$lt?: TValue
$lte?: TValue
$maxDistance?: number
$mod?: TValue extends number
    ? [number, number]
    : never
$ne?: TValue
$near?: Document
$nearSphere?: Document
$nin?: readonly TValue[]
$not?: TValue extends string
    ? RegExp | FilterOperators<TValue>
    : FilterOperators<TValue>
$options?: TValue extends string
    ? string
    : never
$rand?: Record<string, never>
$regex?: TValue extends string
    ? string | RegExp | BSONRegExp
    : never
$size?: TValue extends readonly any[]
    ? number
    : never
$type?: "string" | "symbol" | "undefined" | "object" | "double" | "array" | "binData" | "objectId" | "bool" | "date" | "null" | "regex" | "dbPointer" | "javascript" | "javascriptWithScope" | "int" | "timestamp" | "long" | "decimal" | "minKey" | "maxKey" | BSON.BSONType
__id?: undefined
id?: undefined

Methods

toHexString

Generated using TypeDoc