3 ms·
It's hard to do key removal that way, you end up reasserting all of the other fields in that subdocument, whose values may have changed since your last retrieva
by CiaranMcNulty 13y ago
It's hard to do key removal that way, you end up reasserting all of the other fields in that subdocument, whose values may have changed since your last retrieval.
There's also some value in the patch format looking somewhat different to the main format, to avoid confusion.
- mahmoudimus 13y agoah, key removal is indeed much easier this way.
- steveklabnik 13y agoThe biggest advantage, though, is the same as any reason why you follow a standard: JSON-patch and the PATCH verb are understood by everyone, and so re-using them to take advantage of generality is better than inventing your own special take on updating JSON documents.