Azure Cosmos DB Playground
Experiment with Cosmos DB SQL queries interactively. Choose a preset dataset or load your own data.
This playground uses /id as
the partition key for all queries.
This works with any JSON data you upload since the script auto-generates
an id field if needed.
In production Cosmos DB: Choose partition keys based on your
query patterns (e.g., /tenantId,
/userId,
/category).
Learn more about partition key selection →
SELECT * FROM c WHERE c.city = 'London'