Server-side JavaScript
Update
Update complete JSON documents by reading them from the database, converting them to JavaScript objects (Using .toObject()
), and re-inserting them at their same URIs. It’s important to note that JSON nodes are immutable. That is, you cannot directly change a JSON node.