NodeJS - Sub-document Mutate

The Sub-document API allows for retrieving or mutating a portion of a larger document, without having to first retrieve the entire document, which can provide for higher performance.

Visit the docs to learn more about Sub-document Operations in Node.js.

To run this example, click the button in the top right corner of the code editor.

Code Editor