mongodb-js / jsonpatch-to-mongodb

Convert JSON patches into a MongoDB update
MIT License
35 stars 27 forks source link

Resolve issues with add and replace #8

Closed danbrianwhite closed 5 years ago

danbrianwhite commented 7 years ago

Resolved issue where adding to an object did not work and only worked on arrays. Now the add operation will allow setting an object instead of default array

Resolve issues with replace not removing full values and keeping null

imlucas commented 7 years ago

Wow! Thanks for this! Somehow got lost in the shuffle. Just need to update the test failures and then :shipit:

https://travis-ci.org/mongodb-js/jsonpatch-to-mongodb/builds/172957190