Interface FilterOperators<TValue>

Type Parameters

  • TValue

Hierarchy

Properties

$all?: readonly any[]
$bitsAllClear?: BitwiseFilter
$bitsAllSet?: BitwiseFilter
$bitsAnyClear?: BitwiseFilter
$bitsAnySet?: BitwiseFilter
$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: mongoose.mongo.BSON.Document;
}

Type declaration

$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
$nearSphere?: mongoose.mongo.BSON.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" | "date" | "null" | "array" | "int" | "bool" | "timestamp" | "long" | "double" | "decimal" | "objectId" | "binData" | "regex" | "dbPointer" | "javascript" | "javascriptWithScope" | "minKey" | "maxKey" | mongoose.mongo.BSON.BSONType
__id?: never
id?: never

Methods

toHexString

Generated using TypeDoc