Writing a query to fetch certain values

In order to query based on certain values, let's go ahead and switch up our Todos. Currently, both of them have a completed value equal to false. Let's go ahead and change the Walk the dog completed value to true so we can try to just query items that aren't completed. Over in Robomongo, I'm going to right-click the document and click Edit Document, and there we can edit the values. I'm going to change the completed value from false to true, and then I can save the record:

Inside of the Terminal, I can rerun the script to prove that it has changed. I'm going to shut down the script by running control ...

Get Advanced Node.js Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.