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 30dfdcd commit 8a08aecCopy full SHA for 8a08aec
source/code-snippets/connection/stable-api-connect.js
@@ -1,7 +1,7 @@
1
const { MongoClient, ServerApiVersion } = require("mongodb");
2
3
-// Replace the placeholders with your credentials and hostname
4
-const uri = "mongodb+srv://<username>:<password>@<hostname>/?retryWrites=true&w=majority";
+// Replace the placeholder with your Atlas connection string
+const uri = "<connection string>";
5
6
// Create a MongoClient with a MongoClientOptions object to set the Stable API version
7
const client = new MongoClient(uri, {
0 commit comments