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
Recently upgraded to mongoose 4.0.2. The following code was working previously, but now results in the document being created but not passed to the callback:
This is only occurring on upsert. I can verify the document is created, but both err and res are consistently null. If I call the function again (now that the document exists) it works as expected.
mongoose: 4.0.2
node: v0.12.2
mongodb: 2.6.9
The text was updated successfully, but these errors were encountered:
new is false by default, and when new is false MongoDB returns the document as it was before the update operation was applied. In the case of upserts, there was no document, hence null.
Recently upgraded to mongoose 4.0.2. The following code was working previously, but now results in the document being created but not passed to the callback:
This is only occurring on upsert. I can verify the document is created, but both err and res are consistently null. If I call the function again (now that the document exists) it works as expected.
mongoose: 4.0.2
node: v0.12.2
mongodb: 2.6.9
The text was updated successfully, but these errors were encountered: