MongoDB Query API
MongoDB Query API
The MongoDB Query API is the way you will interact with your data.
The MongoDB Query API can be used in two ways:
- CRUD Operations
- Aggregation Pipelines
MongoDB Query API Uses
You can use the MongoDB Query API to perform:
- Adhoc queries with
mongosh
, Compass, VS Code, or a MongoDB driver for the programming language you use. - Data transformations using aggregation pipelines.
- Document join support to combine data from different collections.
- Graph and geospatial queries.
- Full-text search.
- Indexing to improve MongoDB query performance.
- Time series analysis.
Let's get started!