Class MongoQueryResolver<T>

Type Parameters

  • T extends OrmEntity

Hierarchy

  • GenericQueryResolver<T, DatabaseAdapter, MongoQueryModel<T>>
    • MongoQueryResolver

Constructors

Properties

client: MongoClient
countSchema: ReflectionClass<unknown> = ...
session: DatabaseSession<MongoDatabaseAdapter>

Methods

  • Parameters

    • classSchema: ReflectionClass<any>

    Returns {
        [name: string]: 1 | 0;
    }

    • [name: string]: 1 | 0
  • Returns undefined when no selection limitation has happened. When non-undefined the mongo driver returns a t.partial.

    Type Parameters

    • T

    Parameters

    • classSchema: ReflectionClass<any>
    • select: Set<string>

    Returns undefined | {
        [name: string]: 0 | 1;
    }

  • Type Parameters

    • T extends OrmEntity

    Parameters

    Returns {
        [name: string]: -1 | 1 | {
            $meta: "textScore";
        };
    }

    • [name: string]: -1 | 1 | {
          $meta: "textScore";
      }

Generated using TypeDoc