Skip to content

Commit bed35d3

Browse files
Merge pull request #218938 from vmagelo/python-qs
Add diagram like used in other sibling topics.
2 parents d219a7c + 2ec0451 commit bed35d3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

articles/cosmos-db/mongodb/quickstart-python.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,13 @@ This quickstart will create a single Azure Cosmos DB account using the API for M
114114
115115
## Object model
116116
117-
Let's look at the hierarchy of resources in the API for MongoDB and the object model that's used to create and access these resources. The API for MongoDB creates resources in the following order:
117+
Let's look at the hierarchy of resources in the API for MongoDB and the object model that's used to create and access these resources. The Azure Cosmos DB creates resources in a hierarchy that consists of accounts, databases, collections, and documents.
118+
119+
:::image type="complex" source="media/quickstart-nodejs/resource-hierarchy.png" alt-text="Diagram of the Azure Cosmos DB hierarchy including accounts, databases, collections, and docs.":::
120+
Hierarchical diagram showing an Azure Cosmos DB account at the top. The account has two child database nodes. One of the database nodes includes two child collection nodes. The other database node includes a single child collection node. That single collection node has three child doc nodes.
121+
:::image-end:::
122+
123+
Each type of resource is represented by a Python class. Here are the most common classes:
118124
119125
* [MongoClient](https://pymongo.readthedocs.io/en/stable/api/pymongo/mongo_client.html) - The first step when working with PyMongo is to create a MongoClient to connect to Azure Cosmos DB's API for MongoDB. The client object is used to configure and execute requests against the service.
120126

0 commit comments

Comments
 (0)