Skip to content

Commit cefd46c

Browse files
authored
DOCSP-42303: Update username/password placeholders (#987)
1 parent eddd01b commit cefd46c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/swift.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Connect to MongoDB Atlas
6666
}
6767

6868
// replace the following string with your connection uri
69-
let uri = "mongodb+srv://<username>:<password>@<cluster-address>/test?w=majority"
69+
let uri = "mongodb+srv://<db_username>:<db_password>@<cluster-address>/test?w=majority"
7070
let client = try MongoClient(uri)
7171

7272
// print a list of database names
@@ -85,7 +85,7 @@ Connect to MongoDB Atlas
8585
let elg = MultiThreadedEventLoopGroup(numberOfThreads: 4)
8686

8787
// replace the following string with your connection uri
88-
let uri = "mongodb+srv://<username>:<password>@<cluster-address>/test?w=majority"
88+
let uri = "mongodb+srv://<db_username>:<db_password>@<cluster-address>/test?w=majority"
8989

9090
let client = try MongoClient(
9191
uri,

0 commit comments

Comments
 (0)