MongoDB Manual Contents¶
See About MongoDB Documentation for more information about the MongoDB Documentation project, this Manual and additional editions of this text.
- Installation
- The mongo Shell
- MongoDB CRUD Operations
- MongoDB CRUD Introduction
- MongoDB CRUD Concepts
- MongoDB CRUD Tutorials
- Insert Documents
- Query Documents
- Modify Documents
- Remove Documents
- Limit Fields to Return from a Query
- Limit Number of Elements in an Array after an Update
- Iterate a Cursor in the mongo Shell
- Analyze Query Performance
- Perform Two Phase Commits
- Update Document if Current
- Create Tailable Cursor
- Create an Auto-Incrementing Sequence Field
- Perform Quorum Reads on Replica Sets
- Insert Documents
- MongoDB CRUD Reference
- MongoDB CRUD Introduction
- Aggregation
- Data Models
- Administration
- Administration Concepts
- Administration Tutorials
- Configuration, Maintenance, and Analysis
- Disable Transparent Huge Pages (THP)
- Use Database Commands
- Manage mongod Processes
- Terminate Running Operations
- Analyze Performance of Database Operations
- Rotate Log Files
- Manage Journaling
- Store a JavaScript Function on the Server
- Upgrade to the Latest Revision of MongoDB
- Monitor MongoDB With SNMP on Linux
- Monitor MongoDB Windows with SNMP
- Troubleshoot SNMP
- Disable Transparent Huge Pages (THP)
- Backup and Recovery
- MongoDB Tutorials
- Configuration, Maintenance, and Analysis
- Administration Reference
- Production Checklist
- Indexes
- Storage
- Security
- Security Checklist
- Authentication
- Role-Based Access Control
- Encryption
- Auditing
- Security Hardening
- Security Tutorials
- Enable Access Control
- Authentication Mechanisms
- Use x.509 Certificates to Authenticate Clients
- Use x.509 Certificate for Membership Authentication
- Upgrade from Keyfile Authentication to x.509 Authentication
- Configure MongoDB with Kerberos Authentication on Linux
- Configure MongoDB with Kerberos Authentication on Windows
- Troubleshoot Kerberos Authentication
- Authenticate Using SASL and LDAP with ActiveDirectory
- Authenticate Using SASL and LDAP with OpenLDAP
- Use x.509 Certificates to Authenticate Clients
- Configure Users and Roles
- Network
- Encryption
- Auditing
- Miscellaneous
- Security Reference
- Security Checklist
- Replication
- Replication Introduction
- Replication Concepts
- Replica Set Tutorials
- Replica Set Deployment Tutorials
- Member Configuration Tutorials
- Replica Set Maintenance Tutorials
- Change the Size of the Oplog
- Perform Maintenance on Replica Set Members
- Force a Member to Become Primary
- Resync a Member of a Replica Set
- Configure Replica Set Tag Sets
- Reconfigure a Replica Set with Unavailable Members
- Manage Chained Replication
- Change Hostnames in a Replica Set
- Configure a Secondary’s Sync Target
- Change the Size of the Oplog
- Troubleshoot Replica Sets
- Replication Reference
- Replication Introduction
- Sharding
- Sharding Introduction
- Sharding Concepts
- Sharded Cluster Tutorials
- Sharded Cluster Deployment Tutorials
- Sharded Cluster Maintenance Tutorials
- View Cluster Configuration
- Replace a Config Server
- Migrate Config Servers with the Same Hostname
- Migrate Config Servers with Different Hostnames
- Migrate a Sharded Cluster to Different Hardware
- Backup Cluster Metadata
- Configure Behavior of Balancer Process in Sharded Clusters
- Manage Sharded Cluster Balancer
- Remove Shards from an Existing Sharded Cluster
- View Cluster Configuration
- Sharded Cluster Data Management
- Troubleshoot Sharded Clusters
- Sharding Reference
- Sharding Introduction
- Frequently Asked Questions
- Reference
- Operators
- Query and Projection Operators
- Update Operators
- Aggregation Pipeline Operators
- Pipeline Aggregation Stages
- Boolean Aggregation Operators
- Set Operators (Aggregation)
- Comparison Aggregation Operators
- Arithmetic Aggregation Operators
- $abs (aggregation)
- $add (aggregation)
- $ceil (aggregation)
- $divide (aggregation)
- $exp (aggregation)
- $floor (aggregation)
- $ln (aggregation)
- $log (aggregation)
- $log10 (aggregation)
- $mod (aggregation)
- $multiply (aggregation)
- $pow (aggregation)
- $sqrt (aggregation)
- $subtract (aggregation)
- $trunc (aggregation)
- $abs (aggregation)
- String Aggregation Operators
- Text Search Aggregation Operators
- Array Aggregation Operators
- Aggregation Variable Operators
- Aggregation Literal Operators
- Date Aggregation Operators
- Conditional Aggregation Operators
- Group Accumulator Operators
- Database Commands
- Aggregation Commands
- Geospatial Commands
- Query and Write Operation Commands
- Query Plan Cache Commands
- Authentication Commands
- User Management Commands
- Role Management Commands
- Replication Commands
- Sharding Commands
- Administration Commands
- renameCollection
- copydb
- dropDatabase
- listCollections
- drop
- create
- clone
- cloneCollection
- cloneCollectionAsCapped
- convertToCapped
- filemd5
- createIndexes
- listIndexes
- dropIndexes
- fsync
- clean
- connPoolSync
- connectionStatus
- compact
- collMod
- reIndex
- setParameter
- getParameter
- repairDatabase
- repairCursor
- touch
- shutdown
- logRotate
- renameCollection
- Diagnostic Commands
- Internal Commands
- Testing Commands
- System Events Auditing Commands
- mongo Shell Methods
- Collection Methods
- db.collection.aggregate()
- db.collection.bulkWrite()
- db.collection.count()
- db.collection.copyTo()
- db.collection.createIndex()
- db.collection.dataSize()
- db.collection.deleteOne()
- db.collection.deleteMany()
- db.collection.distinct()
- db.collection.drop()
- db.collection.dropIndex()
- db.collection.dropIndexes()
- db.collection.ensureIndex()
- 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.group()
- db.collection.insert()
- db.collection.insertOne()
- db.collection.insertMany()
- db.collection.isCapped()
- db.collection.mapReduce()
- db.collection.reIndex()
- db.collection.replaceOne()
- db.collection.remove()
- db.collection.renameCollection()
- db.collection.save()
- db.collection.stats()
- db.collection.storageSize()
- db.collection.totalSize()
- db.collection.totalIndexSize()
- db.collection.update()
- db.collection.updateOne()
- db.collection.updateMany()
- db.collection.validate()
- db.collection.aggregate()
- Cursor Methods
- cursor.batchSize()
- cursor.close()
- cursor.comment()
- cursor.count()
- cursor.explain()
- cursor.forEach()
- cursor.hasNext()
- cursor.hint()
- cursor.itcount()
- cursor.limit()
- cursor.map()
- cursor.maxScan()
- cursor.maxTimeMS()
- cursor.max()
- cursor.min()
- cursor.next()
- cursor.noCursorTimeout()
- cursor.objsLeftInBatch()
- cursor.pretty()
- cursor.readConcern()
- cursor.readPref()
- cursor.returnKey()
- cursor.showRecordId()
- cursor.size()
- cursor.skip()
- cursor.snapshot()
- cursor.sort()
- cursor.tailable()
- cursor.toArray()
- cursor.batchSize()
- Database Methods
- db.cloneCollection()
- db.cloneDatabase()
- db.commandHelp()
- db.copyDatabase()
- db.createCollection()
- db.currentOp()
- db.dropDatabase()
- db.eval()
- db.fsyncLock()
- db.fsyncUnlock()
- db.getCollection()
- db.getCollectionInfos()
- db.getCollectionNames()
- db.getLastError()
- db.getLastErrorObj()
- db.getLogComponents()
- db.getMongo()
- db.getName()
- db.getPrevError()
- db.getProfilingLevel()
- db.getProfilingStatus()
- db.getReplicationInfo()
- db.getSiblingDB()
- db.help()
- db.hostInfo()
- db.isMaster()
- db.killOp()
- db.listCommands()
- db.loadServerScripts()
- db.logout()
- db.printCollectionStats()
- db.printReplicationInfo()
- db.printShardingStatus()
- db.printSlaveReplicationInfo()
- db.repairDatabase()
- db.resetError()
- db.runCommand()
- db.serverBuildInfo()
- db.serverCmdLineOpts()
- db.serverStatus()
- db.setLogLevel()
- db.setProfilingLevel()
- db.shutdownServer()
- db.stats()
- db.version()
- db.upgradeCheck()
- db.upgradeCheckAllDBs()
- db.cloneCollection()
- Query Plan Cache Methods
- Bulk Operation Methods
- Bulk()
- db.collection.initializeOrderedBulkOp()
- db.collection.initializeUnorderedBulkOp()
- Bulk.insert()
- Bulk.find()
- Bulk.find.removeOne()
- Bulk.find.remove()
- Bulk.find.replaceOne()
- Bulk.find.updateOne()
- Bulk.find.update()
- Bulk.find.upsert()
- Bulk.execute()
- Bulk.getOperations()
- Bulk.tojson()
- Bulk.toString()
- Bulk()
- User Management Methods
- Role Management Methods
- Replication Methods
- Sharding Methods
- sh._adminCommand()
- sh.getBalancerLockDetails()
- sh._checkFullName()
- sh._checkMongos()
- sh._lastMigration()
- sh.addShard()
- sh.addShardTag()
- sh.addTagRange()
- sh.removeTagRange()
- sh.disableBalancing()
- sh.enableBalancing()
- sh.enableSharding()
- sh.getBalancerHost()
- sh.getBalancerState()
- sh.help()
- sh.isBalancerRunning()
- sh.moveChunk()
- sh.removeShardTag()
- sh.setBalancerState()
- sh.shardCollection()
- sh.splitAt()
- sh.splitFind()
- sh.startBalancer()
- sh.status()
- sh.stopBalancer()
- sh.waitForBalancer()
- sh.waitForBalancerOff()
- sh.waitForDLock()
- sh.waitForPingChange()
- sh._adminCommand()
- Subprocess Methods
- Object Constructors and Methods
- Connection Methods
- Native Methods
- Collection Methods
- MongoDB Package Components
- Configuration File Options
- MongoDB Server Parameters
- MongoDB Limits and Thresholds
- Explain Results
- Connection String URI Format
- MongoDB Extended JSON
- MongoDB Wire Protocol
- Log Messages
- Glossary
- Default MongoDB Port
- Operators
- Release Notes
- Release Notes for MongoDB 3.2
- Release Notes for MongoDB 3.0
- Release Notes for MongoDB 2.6
- Release Notes for MongoDB 2.4
- Release Notes for MongoDB 2.2
- Release Notes for MongoDB 2.0
- Release Notes for MongoDB 1.8
- Release Notes for MongoDB 1.6
- Release Notes for MongoDB 1.4
- Release Notes for MongoDB 1.2.x
- Additional Products
Thank you for your feedback!
We're sorry! You can Report a Problem to help us improve this page.