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
When using $setOnInsert operator while trying to upsert document containing Date type as a field - empty object is assigned to a field instead.
The problem lays at the lib/collection.jsupsertClone function - objectAssignDeep is used to make a copy of inserted data but object-assign-deep does not support copying of Date objects.
The text was updated successfully, but these errors were encountered:
When using $setOnInsert operator while trying to upsert document containing Date type as a field - empty object is assigned to a field instead.
The problem lays at the
lib/collection.js
upsertClone
function -objectAssignDeep
is used to make a copy of inserted data butobject-assign-deep
does not support copying of Date objects.The text was updated successfully, but these errors were encountered: