Azure Cosmos DB Azure Cosmos DB Playground

Powered by Azure Cosmos DB vNext Emulator and Codapi

Experiment with Cosmos DB SQL queries interactively. Choose a preset dataset or load your own data.

Sample Data

Basic user records with name, city, and age. Perfect for learning SQL query basics.
About Partition Keys in this Playground

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 →

SQL Query

SELECT * FROM c WHERE c.city = 'London'

🔗 Share Your Code

Generate a shareable link to this query and data. Perfect for blog posts, articles, or newsletters!