←back to thread

JSON Patch

(zuplo.com)
299 points DataOverload | 3 comments | | HN request time: 0s | source
1. Too ◴[] No.41886228[source]
Similar to how MongoDB update queries work. Natural, since documents there are essentially JSON.

Does anyone know if it’s possible to use that update language on local files, without having a full mongodb running?

https://www.mongodb.com/docs/manual/reference/operator/updat...

replies(2): >>41886351 #>>41886793 #
2. DeathArrow ◴[] No.41886351[source]
We use MongoDB for data storage, so using JSON patch in the PATCH endpoints feels very natural. Just fetch the Mongo document and apply patch. Kind of slow, though.
3. morrvs ◴[] No.41886793[source]
There is https://github.com/kofrasa/mingo for in-memory objects