Syntax
Database Commands
show dbsuse database_namedbCollection Commands
// Show collections in current database
show collections
// Create collection
db.createCollection("collection_name")
// Drop collection
db.collection_name.drop()Insert Syntax
Find Syntax
Update Syntax
Delete Syntax
Comparison Operators
Logical Operators
Element Operators
Evaluation Operators
Field Update Operators
Array Update Operators
Basic Pipeline Structure
Common Pipeline Stages
Arithmetic Operators
String Operators
Date Operators
Create Index
Index Management
Create User
User Operations
Connection String Syntax
Shell Commands Syntax
Last updated