June 2014
Intermediate to advanced
696 pages
38h 52m
English
Typically you update documents in a collection through your Node.js application. However, at times you may need to manually update a document from an administrative point of view to fix a database or for testing purposes.
To update documents in a collection, you need to get the collection. Then you can use the save(object) method to save changes you have made to an object. Or you can use the update(query, update, options) method to query for documents in the collection and then update them as they are found.
When you use the update() method, the query parameter specifies a query document with fields and values to match documents against in the collection. The update parameter is an object that specifies the ...
Read now
Unlock full access