Docs Menu

Docs HomeMongoDB Manual

Getting Started

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:

MongoDB Atlas Free Tier Cluster
MongoDB Atlas is a fast, easy, and free way to get started with MongoDB. To learn more, see the Getting Started with Atlas tutorial.
Local MongoDB installation
For more information on installing MongoDB locally, see Install MongoDB.

For additional examples, including MongoDB driver specific examples (Python, Java, Node.js, etc.), see:

Query document examples
Update document examples
Delete document examples
←  Introduction to MongoDBDatabases and Collections →
Give Feedback
© 2022 MongoDB, Inc.


  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.