Interface FilterOperators<TValue>

interface FilterOperators<TValue> {
    __id?: undefined;
    $all?: readonly any[];
    $bitsAllClear?: BitwiseFilter;
    $bitsAllSet?: BitwiseFilter;
    $bitsAnyClear?: BitwiseFilter;
    $bitsAnySet?: BitwiseFilter;
    $elemMatch?: Document;
    $eq?: TValue;
    $exists?: boolean;
    $expr?: Record<string, any>;
    $geoIntersects?: {
        $geometry: Document;
    };
    $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<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;
    toHexString?: any;
}

Type Parameters

  • TValue

Hierarchy (view full)

Properties

__id?: undefined
$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;
}
$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<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

Methods

toHexString