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