Skip to content

No options are passed to the find one methodΒ #60

@aonics

Description

@aonics

Maybe I'm missing something, but the options are not passed further in the findOne

node-mongo/src/service.ts

Lines 163 to 173 in 3274b65

findOne = async (
query: Filter<T> = { },
options: GeneralRequestOptions = {},
): Promise<T | null> => {
const collection = await this.getCollection();
query = this.addQueryDefaults(query, options);
this.validateQuery(query, options);
return collection.findOne<T>(query);
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions