Closed
Description
Description
versions:
js-data: 2.10.0
js-data-mongodb: 0.7.0
Steps to reproduce
- Define
User
resource model - Assume that a user data:
{ _id: 'XXXX', groups: { groupOne: true, groupTwo: true } }
- Do:
User.update('XXXX', {groups: {groupOne: null}})
- Expected result:
groupOne
gets removed fromgroups
- End result:
groups
was overridden and becomegroups: {groupOne: null}
If there's no way to do atomic update, the code won't scale.
Thanks!