Query Playground

Learn more about Azure Cosmos DB’s rich querying over schema-free JSON data. Azure Cosmos DB is Microsoft’s globally-distributed, multi-model database service.

Azure Cosmos DB has a new Community Page! Have a project or an event related to Azure Cosmos DB? Tell us about it on the community page and we'll help promote it!

Syntax
Filtering
Order By
Top
Geospatial
Sandbox

Let’s familiarize ourselves with the classic SELECT, FROM and WHERE query. The FROM is optional and usually set to the current collection’s name. Try running the query below.
Confused about the schema? Click the Sample Docs pane to view an example document. Sample docs vary for each activity. To see a sample document with all properties, view Sample Docs in the Sandbox tab.

Query
Results Sample Docs
Run it!