Update Document Data
Update Document Data in your WorqDB Collections
Initialize Database Modules
Update Document data
To update some fields of a document without overwriting the entire document, use the following language-specific update()
methods:
You can pass in the new data as a JSON object to the update()
method. The update()
method will merge the new data with the existing data in the document.
Update Nested JSON Data in a Document
To replace the entire nested JSON object
To replace the entire nested JSON object, use the update()
method and pass in the new nested JSON object as the value of the key you want to update.