Type alias QuerySelector<T>

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

Type Parameters

  • T

Type declaration

  • Optional $all?: T extends (infer U)[] ? any[] : never
  • Optional $bitsAllClear?: BitwiseQuery
  • Optional $bitsAllSet?: BitwiseQuery
  • Optional $bitsAnyClear?: BitwiseQuery
  • Optional $bitsAnySet?: BitwiseQuery
  • Optional $elemMatch?: T extends (infer U)[] ? 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[]
  • 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[]
  • Optional $not?: T extends string ? QuerySelector<T> | RegExp : QuerySelector<T>
  • Optional $options?: T extends string ? string : never
  • Optional $parameter?: string
  • Optional $regex?: T extends string ? RegExp | string : never
  • Optional $size?: T extends (infer U)[] ? number : never
  • Optional $type?: number | BSONTypeAlias

Generated using TypeDoc