Closed josinaldobarbosa closed 4 years ago
Yes, this is the way this module works, it outputs the current value, since _id
no longer exists, its current value resolves to undefined.
Yep, I think that's the expected behaviour. The readme deletedDiff
example works the same way.
ok, thanks guys
should that be undefined?
Original:
[ { _id: 123, id_content: 111, id_category: 22 } ]
New:[ { id_content: 111, id_category: 22 } ]
detailedDiff/diff:{ added: {}, deleted: { '0': { _id: undefined } }, updated: {} }