Query language for DocumentDB (in Azure) documentation

Learn about the open-source DocumentDB platform and the MongoDB Query Language (MQL) used by Azure DocumentDB. Build modern MongoDB-compatible applications with familiar MQL syntax.

Commands

MongoDB Query Language (MQL) commands are direct instructions for managing and interacting with your database server. They are essential for performing administrative tasks, optimizing performance, and maintaining security.

Aggregation

Aggregation commands process data records and return computed results. They group values from multiple documents, perform operations on the grouped data, and return a single result. Common aggregation tasks include calculating averages, sums, and counts.

Query and Write

Query and write commands allow you to retrieve, insert, update, and delete documents in your DocumentDB collections. These operations are fundamental for interacting with your data, enabling you to perform CRUD (Create, Read, Update, Delete) tasks efficiently.

Operators

MongoDB Query Language (MQL) operators enable powerful filtering, comparison, and data manipulation within queries. Mastering these operators helps you write expressive queries to efficiently retrieve and update documents in your collections.

Bitwise Update

Bitwise update operators are used to modify values using bitwise operations.

Conditional Expression

Conditional expression operators provide control flow and conditional logic in expressions.

Element Query

Element query operators are used to query document elements based on their existence and type.

Literal Expression

Literal expression operators are used to represent literal values in aggregation expressions.