Skip to content

Commit 8a08aec

Browse files
authored
match conventions (#631)
1 parent 30dfdcd commit 8a08aec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/code-snippets/connection/stable-api-connect.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const { MongoClient, ServerApiVersion } = require("mongodb");
22

3-
// Replace the placeholders with your credentials and hostname
4-
const uri = "mongodb+srv://<username>:<password>@<hostname>/?retryWrites=true&w=majority";
3+
// Replace the placeholder with your Atlas connection string
4+
const uri = "<connection string>";
55

66
// Create a MongoClient with a MongoClientOptions object to set the Stable API version
77
const client = new MongoClient(uri, {

0 commit comments

Comments
 (0)