The following page provides various examples for querying in the MongoDB shell. For examples using MongoDB drivers, refer to the links in the Additional Examples section.
Click inside the shell to connect. Once connected, you can run the examples in the shell above.
To set up your own deployment:
For additional examples, including MongoDB driver specific examples (Python, Java, Node.js, etc.), see: