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
Describe the bug
When performing a query based update like model.updateOne() mongoose will depopulate object referenced by ID but the patch will be generated from the update as is.
To Reproduce
The following code will produce the undesirable behavior.
Describe the bug
When performing a query based update like
model.updateOne()
mongoose will depopulate object referenced by ID but the patch will be generated from the update as is.To Reproduce
The following code will produce the undesirable behavior.
The history patch that will be generated is this.
Expected behavior
The patch should resemble what happens in the mongodb server and the patch should look like this.
The text was updated successfully, but these errors were encountered: