Skip to content

Commit

Permalink
DOCSP-42303: Update username/password placeholders (#987)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmorisi authored Aug 13, 2024
1 parent eddd01b commit cefd46c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/swift.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Connect to MongoDB Atlas
}

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

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

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

let client = try MongoClient(
uri,
Expand Down

0 comments on commit cefd46c

Please sign in to comment.