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
Copy file name to clipboardExpand all lines: articles/cosmos-db/mongodb/vcore/tutorial-nodejs-web-app.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -165,13 +165,13 @@ Start by running the sample application's API with the local MongoDB container t
165
165
> [!NOTE]
166
166
> The object ids (`_id`) are randomnly generated and will differ from this truncated example output.
167
167
168
-
1. In the **client/** directory, create a new **.env** file.
168
+
1. In the **server/** directory, create a new **.env** file.
169
169
170
-
1. In the **client/.env** file, add an environment variable for this value:
170
+
1. In the **server/.env** file, add an environment variable for this value:
171
171
172
172
| Environment Variable | Value |
173
173
| --- | --- |
174
-
|`CONNECTION_STRING`| The connection string to the Azure Cosmos DB for MongoDB vCore cluster. For now, use `mongodb://localhost`. |
174
+
|`CONNECTION_STRING`| The connection string to the Azure Cosmos DB for MongoDB vCore cluster. For now, use `mongodb://localhost:27017?directConnection=true`. |
@@ -270,8 +270,13 @@ Now, let's validate that the application works seamlessly with Azure Cosmos DB f
270
270
```shell
271
271
exit
272
272
```
273
+
1. In the **client/** directory, create a new **.env** file.
273
274
274
-
1. Open the **client/.env** file again. Then, update the value of the `CONNECTION_STRING` environment variables with the connection string you used with the mongo shell:
275
+
1. In the **client/.env** file, add an environment variable for this value:
276
+
277
+
| Environment Variable | Value |
278
+
| --- | --- |
279
+
| `CONNECTION_STRING` | The connection string to the Azure Cosmos DB for MongoDB vCore cluster. Use the same connection string you used with the mongo shell:
0 commit comments