We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 228f473 commit 9632a7bCopy full SHA for 9632a7b
source/includes/fundamentals/code-examples/connection/AtlasConnection.cs
@@ -4,7 +4,7 @@
4
// Replace the placeholders with your credentials
5
const string connectionUri = "mongodb+srv://<username>:<password>@cluster0.sample.mongodb.net/?retryWrites=true&w=majority";
6
7
-var settings = MongoClientSettings.FromConnectionString(connectionString);
+var settings = MongoClientSettings.FromConnectionString(connectionUri);
8
9
// Set the ServerApi field of the settings object to Stable API version 1
10
settings.ServerApi = new ServerApi(ServerApiVersion.V1);
0 commit comments