This guide organizes the core platform capabilities into practical sections you can use when building application features.Documentation Index
Fetch the complete documentation index at: https://mongodb-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
CRUD Operations
Create, read, update, and delete operations are the foundation of most operational workloads. Keep write paths idempotent where possible and scope reads to indexed fields.Indexes
Indexes reduce scan volume and improve latency. Start by indexing:- High-selectivity filter fields
- Sort keys used in frequent queries
- Compound patterns where filter + sort are stable
Data Modeling
Choose between embedding and referencing based on read/write patterns:- Embed when data is read together and bounded in size.
- Reference when relationships are many-to-many or independently updated.
Aggregation Operations
Aggregation pipelines let you transform and compute server-side:Geospatial Queries
Use2dsphere indexes for location workloads such as proximity and region containment queries.
Time Series Collections
Time series collections optimize storage and query patterns for timestamped measurements. Use appropriatetimeField and metaField choices to improve bucketing and scan efficiency.