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

myModel.find() is not working #10639

Closed
xandner opened this issue Aug 30, 2021 · 2 comments
Closed

myModel.find() is not working #10639

xandner opened this issue Aug 30, 2021 · 2 comments
Milestone

Comments

@xandner
Copy link

xandner commented Aug 30, 2021

this is my function:

async function getCourseListe(){
const courseListe = await courseModel.find({'}).exec();
console.log(courseListe)
}
getCourseListe()

and this is my error:
MongoInvalidArgumentError: Method "collection.find()" accepts at most two arguments
but courseModel.findOne() is working very good

@Kamikadze4GAME
Copy link
Contributor

Duplicates #10634

@lorand-horvath
Copy link
Contributor

This is a duplicate of the issue I reported here initially #10610 (comment) and should be fixed in 6.0.3 via 9de60a7

@vkarpov15 vkarpov15 added this to the 6.0.3 milestone Aug 30, 2021
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

5 participants