Skip to content

Commit 9632a7b

Browse files
author
Chris Cho
authored
Fix connection snippet variable name (#84)
1 parent 228f473 commit 9632a7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/includes/fundamentals/code-examples/connection/AtlasConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Replace the placeholders with your credentials
55
const string connectionUri = "mongodb+srv://<username>:<password>@cluster0.sample.mongodb.net/?retryWrites=true&w=majority";
66

7-
var settings = MongoClientSettings.FromConnectionString(connectionString);
7+
var settings = MongoClientSettings.FromConnectionString(connectionUri);
88

99
// Set the ServerApi field of the settings object to Stable API version 1
1010
settings.ServerApi = new ServerApi(ServerApiVersion.V1);

0 commit comments

Comments
 (0)