Find method is not working correctly

Mongoose Model.find( f i l t e r ) method accepts

filter: Object | ObjectId

In the mongoose docs for ObjectId, the latter is built from

mongoose.ObjectId(...)

as far as I understand from the docs.

So you could try that.

It may not be useful here, but there is also Model.findById(id) where the id can be any type :slight_smile: !