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
You're right the mock runs under the assumption that the only objectID is the _id, will fix the merge/update code to check for object type rather than just plucking _id by default.
When you update a document, all the fields with type equal to ObjectID get messed up (except for the "_id" field).
Sample code
Expected result
res1.otherId should be equal to res2.otherId.
Actual result
res2.otherId is equal to ObjectID(undefined).
The text was updated successfully, but these errors were encountered: