Skip to content

Commit a533a92

Browse files
committed
Work on constructor wording.
1 parent 153451e commit a533a92

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

articles/cosmos-db/mongodb/how-to-python-get-started.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,7 @@ This article shows you how to communicate with the Azure Cosmos DB’s API for M
6969
7070
To connect with the PyMongo driver to Azure Cosmos DB, create an instance of the [MongoClient](https://pymongo.readthedocs.io/en/stable/api/pymongo/mongo_client.html#pymongo.mongo_client.MongoClient) object. This class is the starting point to perform all operations against databases.
7171
72-
The most common constructor for **MongoClient** has two parameters:
73-
74-
| Parameter | Example value | Description |
75-
| --- | --- | --- |
76-
| `host` | `COSMOS_CONNECTION_STRING` environment variable | API for MongoDB connection string to use for all requests |
77-
| *`kwargs`* | `connect=False` | Keyword arguments for the connection. Many of the keyword arguments can also be specified using a MongoDB URI. If the same option is passed in a URI and as a keyword argument the keyword argument takes precedence. |
72+
The most common constructor for **MongoClient** has just the `host` parameter, which in this article is set to the `COSMOS_CONNECTION_STRING` environment variable. The are other optional parameters and keyword parameters you can use in the constructor. Many of the optional parameters can also be specified with the MongoDB URI used for the `host` parameter. If the same option is passed in with `host` and as a parameter, the parameter takes precedence.
7873
7974
Refer to the [Troubleshooting guide](error-codes-solutions.md) for connection issues.
8075

0 commit comments

Comments
 (0)