You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The [Azure Cosmos DB's API for MongoDB](introduction.md) supports [MongoDB queries](https://docs.mongodb.com/manual/tutorial/query-documents/).
17
+
The [Azure Cosmos DB's API for MongoDB](introduction.md) supports [MongoDB queries](https://docs.mongodb.com/manual/tutorial/query-documents/).
18
18
19
-
This article covers the following tasks:
19
+
This article covers the following tasks:
20
20
21
21
> [!div class="checklist"]
22
22
> * Querying data stored in your Azure Cosmos DB database using MongoDB shell
23
23
24
-
You can get started by using the examples in this document and watch the [Query Azure Cosmos DB with MongoDB shell](https://azure.microsoft.com/resources/videos/query-azure-cosmos-db-data-by-using-the-mongodb-shell/) video .
24
+
You can get started by using the examples in this article.
25
25
26
26
## Sample document
27
27
@@ -55,17 +55,18 @@ The queries in this article use the following sample document.
55
55
"isRegistered": false
56
56
}
57
57
```
58
-
## <aid="examplequery1"></a> Example query 1
59
58
60
-
Given the sample family document above, the following query returns the documents where the id field matches `WakefieldFamily`.
59
+
## <aid="examplequery1"></a> Example query 1
61
60
62
-
**Query**
61
+
Given the sample family document, the following query returns the documents where the `id` field matches `WakefieldFamily`.
The next query returns all the families where size of children array is 3.
312
313
313
-
**Query**
314
+
Query:
314
315
315
316
```bash
316
317
db.Family.find( {children: { $size:3} } )
317
318
```
318
319
319
-
**Results**
320
+
Results:
320
321
321
-
No results will be returned as there are no families with more than two children. Only when parameter is 2 this query will succeed and return the full document.
322
+
No results are returned because there are no families with more than two children. Only when parameter value is `2` does this query succeed and return the full document.
322
323
323
324
## Next steps
324
325
325
-
In this tutorial, you've done the following:
326
+
In this tutorial, you've done the following tasks:
326
327
327
328
> [!div class="checklist"]
328
-
> * Learned how to query using Azure Cosmos DB’s API for MongoDB
329
+
> * Learned how to query using Azure Cosmos DB's API for MongoDB
329
330
330
331
You can now proceed to the next tutorial to learn how to distribute your data globally.
0 commit comments