Type alias QuerySelector<T>

QuerySelector<T>: {
    $all?: T extends AnyArray<any>
        ? any[]
        : never;
    $bitsAllClear?: number | Binary | number[];
    $bitsAllSet?: number | Binary | number[];
    $bitsAnyClear?: number | Binary | number[];
    $bitsAnySet?: number | Binary | number[];
    $elemMatch?: T extends AnyArray<any>
        ? object
        : never;
    $eq?: T;
    $exists?: boolean;
    $expr?: any;
    $geoIntersects?: {
        $geometry: object;
    };
    $geoWithin?: object;
    $gt?: T;
    $gte?: T;
    $in?: [T] extends AnyArray<any>
        ? Unpacked<T>[]
        : T[];
    $jsonSchema?: any;
    $lt?: T;
    $lte?: T;
    $maxDistance?: number;
    $mod?: T extends number
        ? [number, number]
        : never;
    $ne?: T;
    $near?: object;
    $nearSphere?: object;
    $nin?: [T] extends AnyArray<any>
        ? Unpacked<T>[]
        : T[];
    $not?: T extends string
        ? QuerySelector<T> | RegExp
        : QuerySelector<T>;
    $options?: T extends string
        ? string
        : never;
    $regex?: T extends string
        ? RegExp | string
        : never;
    $size?: T extends AnyArray<any>
        ? number
        : never;
    $type?: string | number;
}

Type Parameters

  • T

Type declaration

  • Optional $all?: T extends AnyArray<any>
        ? any[]
        : never
  • Optional $bitsAllClear?: number | Binary | number[]
  • Optional $bitsAllSet?: number | Binary | number[]
  • Optional $bitsAnyClear?: number | Binary | number[]
  • Optional $bitsAnySet?: number | Binary | number[]
  • Optional $elemMatch?: T extends AnyArray<any>
        ? object
        : never
  • Optional $eq?: T
  • Optional $exists?: boolean

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

  • Optional $expr?: any
  • Optional $geoIntersects?: {
        $geometry: object;
    }
    • $geometry: object
  • Optional $geoWithin?: object
  • Optional $gt?: T
  • Optional $gte?: T
  • Optional $in?: [T] extends AnyArray<any>
        ? Unpacked<T>[]
        : T[]
  • Optional $jsonSchema?: any
  • Optional $lt?: T
  • Optional $lte?: T
  • Optional $maxDistance?: number
  • Optional $mod?: T extends number
        ? [number, number]
        : never
  • Optional $ne?: T
  • Optional $near?: object
  • Optional $nearSphere?: object
  • Optional $nin?: [T] extends AnyArray<any>
        ? Unpacked<T>[]
        : T[]
  • Optional $not?: T extends string
        ? QuerySelector<T> | RegExp
        : QuerySelector<T>
  • Optional $options?: T extends string
        ? string
        : never
  • Optional $regex?: T extends string
        ? RegExp | string
        : never
  • Optional $size?: T extends AnyArray<any>
        ? number
        : never
  • Optional $type?: string | number

Generated using TypeDoc