Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No options are passed to the find one method #60

Open
aonics opened this issue Nov 10, 2022 · 0 comments
Open

No options are passed to the find one method #60

aonics opened this issue Nov 10, 2022 · 0 comments

Comments

@aonics
Copy link

aonics commented Nov 10, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant