Mongoose: Querying on Object ID type

Share your schema definitions. May be mongoose, is doing some type modification and overrides the fact that yo do pass an ObjectId.

1 Like