Sarada
Gallery
💥 TRENDING: Docs/manual/reference/method/db.collection.explain - Complete Album!
🔍
MongoDB.local SF, Jan 15: See the speaker lineup & ship your AI vision faster. Use WEB50 to save 50%
Find out more >
Products
Platform
Atlas
Build and scale with an AI-ready platform
Platform Services
Database
Deploy a multi-cloud database
Search
Deliver engaging search experiences
Vector Search
Design intelligent apps with gen AI
Stream Processing
Integrate MongoDB and Kafka
Self Managed
Enterprise Advanced
Run and manage MongoDB yourself
Community Edition
Develop locally with MongoDB
Tools
Compass
Work with MongoDB data in a GUI
Integrations
Integrations with third-party services
Relational Migrator
Migrate to MongoDB with confidence
View All Products
Explore our full developer suite
MongoDB 8.0
Our fastest version ever
Build with MongoDB Atlas
Get started for free in minutes
Sign Up
Test Enterprise Advanced
Develop with MongoDB on-premises
Download
Try Community Edition
Explore the latest version of MongoDB
Download
Resources
Documentation
Atlas Documentation
Get started using Atlas
Server Documentation
Learn to use MongoDB
Tools and Connectors
Learn how to connect to MongoDB
MongoDB Drivers
Use drivers and libraries for MongoDB
Resources Hub
Get help building the next big thing with MongoDB
Connect
Community
Join a global community of developers
Courses and Certification
Learn for free from MongoDB
Events and Webinars
Find an event or webinar near you
Solutions
Use cases
Artificial Intelligence
Modernization
Payments
Serverless Development
Gaming
Intelligent Search
Edge and Mobile
Industries
Financial Services
Telecommunications
Healthcare
Retail
Public Sector
Manufacturing
Solutions Library
Organized and tailored solutions to kick-start projects
AI Applications Program
Expedite your AI journey with expert guidance
Learn more
Startups and AI Innovators
For world-changing ideas and AI pioneers
Learn more
Customer Case Studies
Hear directly from our users
See Stories
Company
Careers
Start your next adventure
Blog
Read articles and announcements
Newsroom
Read press releases and news stories
Partners
Learn about our partner ecosystem
Leadership
Meet our executive team
Company
Learn more about who we are
Contact Us
Reach out to MongoDB
Connect with an expert
Investors
Visit our investor portal
Learn more
Pricing
Eng
Support
Sign In
Get Started
Products
Platform
Atlas
Build and scale with an AI-ready platform
Platform Services
Database
Deploy a multi-cloud database
Search
Deliver engaging search experiences
Vector Search
Design intelligent apps with gen AI
Stream Processing
Integrate MongoDB and Kafka
Self Managed
Enterprise Advanced
Run and manage MongoDB yourself
Community Edition
Develop locally with MongoDB
Tools
Compass
Work with MongoDB data in a GUI
Integrations
Integrations with third-party services
Relational Migrator
Migrate to MongoDB with confidence
View All Products
Explore our full developer suite
MongoDB 8.0
Our fastest version ever
Build with MongoDB Atlas
Get started for free in minutes
Sign Up
Test Enterprise Advanced
Develop with MongoDB on-premises
Download
Try Community Edition
Explore the latest version of MongoDB
Download
Resources
Documentation
Atlas Documentation
Get started using Atlas
Server Documentation
Learn to use MongoDB
Tools and Connectors
Learn how to connect to MongoDB
MongoDB Drivers
Use drivers and libraries for MongoDB
Resources Hub
Get help building the next big thing with MongoDB
Connect
Community
Join a global community of developers
Courses and Certification
Learn for free from MongoDB
Events and Webinars
Find an event or webinar near you
Solutions
Use cases
Artificial Intelligence
Modernization
Payments
Serverless Development
Gaming
Intelligent Search
Edge and Mobile
Industries
Financial Services
Telecommunications
Healthcare
Retail
Public Sector
Manufacturing
Solutions Library
Organized and tailored solutions to kick-start projects
AI Applications Program
Expedite your AI journey with expert guidance
Learn more
Startups and AI Innovators
For world-changing ideas and AI pioneers
Learn more
Customer Case Studies
Hear directly from our users
See Stories
Company
Careers
Start your next adventure
Blog
Read articles and announcements
Newsroom
Read press releases and news stories
Partners
Learn about our partner ecosystem
Leadership
Meet our executive team
Company
Learn more about who we are
Contact Us
Reach out to MongoDB
Connect with an expert
Investors
Visit our investor portal
Learn more
Pricing
Eng
Support
Sign In
Get Started
Docs Home
Get Started
Development
Database Manual
8.2 (Current)
Overview
Documents
Databases & Collections
Client Libraries
Connect to Clusters
Database Users
CRUD Operations
Indexes
Data Modeling
Aggregation Operations
Search
Vector Search
AI Integrations
Time Series
Change Streams
Transactions
Data Federation
In-Use Encryption
Development Checklist
Replication
Sharding
Performance
Reference
Collation
Connection Strings
Database Commands
DDL Operations
Default Port
Read & Write Concerns
Error Codes
Glossary
Log Messages
Limits & Thresholds
MongoDB Database Tools
Wire Protocol
mongosh Methods
Native Methods
Atlas Search Index
Atlas Stream Processing
Collections
db.collection.aggregate
db.collection.analyzeShardKey
db.collection.bulkWrite
db.collection.compactStructuredEncryptionData
db.collection.configureQueryAnalyzer
db.collection.count
db.collection.countDocuments
db.collection.createIndex
db.collection.createIndexes
db.collection.dataSize
db.collection.deleteMany
db.collection.deleteOne
db.collection.distinct
db.collection.drop
db.collection.dropIndex
db.collection.dropIndexes
db.collection.estimatedDocumentCount
db.collection.explain
db.collection.find
db.collection.findAndModify
db.collection.findOne
db.collection.findOneAndDelete
db.collection.findOneAndReplace
db.collection.findOneAndUpdate
db.collection.getIndexes
db.collection.getShardDistribution
db.collection.getShardVersion
db.collection.hideIndex
db.collection.insert
db.collection.insertMany
db.collection.insertOne
db.collection.isCapped
db.collection.latencyStats
db.collection.mapReduce
db.collection.reIndex
db.collection.remove
db.collection.renameCollection
db.collection.replaceOne
db.collection.stats
db.collection.storageSize
db.collection.totalIndexSize
db.collection.totalSize
db.collection.unhideIndex
db.collection.update
db.collection.updateMany
db.collection.updateOne
db.collection.validate
db.collection.watch
Cursors
Databases
Query Plan Caches
Bulk Operations
User Management
Role Management
Replication
Sharding
Object Constructors
Connections
In-Use Encryption
Query Language
Server Sessions
Slot-Based Query Execution Engine
Stable API
System Collections
Legacy mongo Shell
BSON Types
Support
Streaming Data
Atlas Stream Processing
Atlas Triggers
Release Notes
Server Release Notes
Atlas Release Notes
Search Release Notes
Vector Search Release Notes
Management
Client Libraries
Tools
Atlas Architecture Center
Docs Home
Get Started
Development
Management
Client Libraries
Tools
Atlas Architecture Center
Database Manual
8.2 (Current)
Overview
Documents
Databases & Collections
Client Libraries
Connect to Clusters
Database Users
CRUD Operations
Indexes
Data Modeling
Aggregation Operations
Search
Vector Search
AI Integrations
Time Series
Change Streams
Transactions
Data Federation
In-Use Encryption
Development Checklist
Replication
Sharding
Performance
Reference
Collation
Connection Strings
Database Commands
DDL Operations
Default Port
Read & Write Concerns
Error Codes
Glossary
Log Messages
Limits & Thresholds
MongoDB Database Tools
Wire Protocol
mongosh Methods
Native Methods
Atlas Search Index
Atlas Stream Processing
Collections
db.collection.aggregate
db.collection.analyzeShardKey
db.collection.bulkWrite