FindOneOptions: {
    projection?: Record<string, unknown>;
    sort?: Record<string, unknown>;

Options passed when finding a single document

Type declaration

  • Optional Readonly projection?: Record<string, unknown>

    Limits the fields to return for all matching documents. See Tutorial: Project Fields to Return from Query.

  • Optional Readonly sort?: Record<string, unknown>

    The order in which to return matching documents.

Generated using TypeDoc