Interface FilterOperators<TValue>

interface FilterOperators<TValue> {
    $all?: readonly any[];
    $bitsAllClear?: BitwiseFilter;
    $bitsAllSet?: BitwiseFilter;
    $bitsAnyClear?: BitwiseFilter;
    $bitsAnySet?: BitwiseFilter;
    $elemMatch?: mongoose.mongo.BSON.Document;
    $eq?: TValue;
    $exists?: boolean;
    $expr?: Record<string, any>;
    $geoIntersects?: {
        $geometry: mongoose.mongo.BSON.Document;
    };
    $geoWithin?: mongoose.mongo.BSON.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?: mongoose.mongo.BSON.Document;
    $nearSphere?: mongoose.mongo.BSON.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" | "array" | "bool" | "double" | "int" | "long" | "decimal" | "date" | "objectId" | "binData" | "null" | "regex" | "dbPointer" | "javascript" | "javascriptWithScope" | "timestamp" | "minKey" | "maxKey" | mongoose.mongo.BSON.BSONType;
    __id?: never;
    id?: never;
    toHexString?: any;
}

Type Parameters

  • TValue

Hierarchy (view full)

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

Methods

toHexString