paralect/node-mongo

No options are passed to the find one method

Opened this issue · 0 comments

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);
};