3 ms·
Patch is extraordinarily helpful when coupled with json-patch[1]. I also created an associated library/spec json-patch-rules[2] If you're using Mongoose ORM,
by claytongulick 5y ago
Patch is extraordinarily helpful when coupled with json-patch[1].
I also created an associated library/spec json-patch-rules[2]
If you're using Mongoose ORM, I made mongoose-patcher[3].
When coupled with fast-json-patch[4] and clone/deep compare on the client, these technologies can make your life really easy.
[1] - http://jsonpatch.com/ http://jsonpatch.com/
[2] - https://github.com/claytongulick/json-patch-rules https://github.com/claytongulick/json-patch-rules
[3] - https://github.com/claytongulick/mongoose-json-patch https://github.com/claytongulick/mongoose-json-patch
[4] - https://github.com/Starcounter-Jack/JSON-Patch https://github.com/Starcounter-Jack/JSON-Patch