You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and this is my error:
MongoInvalidArgumentError: Method "collection.find()" accepts at most two arguments
but courseModel.findOne() is working very good
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: