Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5b073e3

Browse files
committed
Update name of default db
1 parent 41b2ed7 commit 5b073e3

File tree

11 files changed

+11
-11
lines changed

11 files changed

+11
-11
lines changed

‎aggregation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ async function main() {
55
* Connection URI. Update <username>, <password>, and <your-cluster-url> to reflect your cluster.
66
* See http://bit.ly/NodeDocs_lauren for more details
77
*/
8-
const uri = "mongodb+srv://<username>:<password>@<your-cluster-url>/test?retryWrites=true&w=majority";
8+
const uri = "mongodb+srv://<username>:<password>@<your-cluster-url>/sample_airbnb?retryWrites=true&w=majority";
99

1010
/**
1111
* The Mongo Client you will use to interact with your database

‎changeStreams.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ async function main() {
66
* Connection URI. Update <username>, <password>, and <your-cluster-url> to reflect your cluster.
77
* See http://bit.ly/NodeDocs_lauren for more details
88
*/
9-
const uri = "mongodb+srv://<username>:<password>@<your-cluster-url>/test?retryWrites=true&w=majority";
9+
const uri = "mongodb+srv://<username>:<password>@<your-cluster-url>/sample_airbnb?retryWrites=true&w=majority";
1010

1111
/**
1212
* The Mongo Client you will use to interact with your database

‎changeStreamsTestData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ async function main() {
99
* Connection URI. Update <username>, <password>, and <your-cluster-url> to reflect your cluster.
1010
* See http://bit.ly/NodeDocs_lauren for more details
1111
*/
12-
const uri = "mongodb+srv://<username>:<password>@<your-cluster-url>/test?retryWrites=true&w=majority";
12+
const uri = "mongodb+srv://<username>:<password>@<your-cluster-url>/sample_airbnb?retryWrites=true&w=majority";
1313

1414
/**
1515
* The Mongo Client you will use to interact with your database

‎connection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ async function main() {
55
* Connection URI. Update <username>, <password>, and <your-cluster-url> to reflect your cluster.
66
* See https://docs.mongodb.com/ecosystem/drivers/node/ for more details
77
*/
8-
const uri = "mongodb+srv://<username>:<password>@<your-cluster-url>/test?retryWrites=true&w=majority";
8+
const uri = "mongodb+srv://<username>:<password>@<your-cluster-url>/sample_airbnb?retryWrites=true&w=majority";
99

1010
/**
1111
* The Mongo Client you will use to interact with your database

‎create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ async function main(){
55
* Connection URI. Update <username>, <password>, and <your-cluster-url> to reflect your cluster.
66
* See http://bit.ly/NodeDocs_lauren for more details
77
*/
8-
const uri = "mongodb+srv://<username>:<password>@<your-cluster-url>/test?retryWrites=true&w=majority";
8+
const uri = "mongodb+srv://<username>:<password>@<your-cluster-url>/sample_airbnb?retryWrites=true&w=majority";
99

1010
/**
1111
* The Mongo Client you will use to interact with your database

‎delete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ async function main() {
55
* Connection URI. Update <username>, <password>, and <your-cluster-url> to reflect your cluster.
66
* See http://bit.ly/NodeDocs_lauren for more details
77
*/
8-
const uri = "mongodb+srv://<username>:<password>@<your-cluster-url>/test?retryWrites=true&w=majority";
8+
const uri = "mongodb+srv://<username>:<password>@<your-cluster-url>/sample_airbnb?retryWrites=true&w=majority";
99

1010
/**
1111
* The Mongo Client you will use to interact with your database

‎read.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ async function main() {
55
* Connection URI. Update <username>, <password>, and <your-cluster-url> to reflect your cluster.
66
* See http://bit.ly/NodeDocs_lauren for more details
77
*/
8-
const uri = "mongodb+srv://<username>:<password>@<your-cluster-url>/test?retryWrites=true&w=majority";
8+
const uri = "mongodb+srv://<username>:<password>@<your-cluster-url>/sample_airbnb?retryWrites=true&w=majority";
99

1010
/**
1111
* The Mongo Client you will use to interact with your database

‎template.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ async function main() {
55
* Connection URI. Update <username>, <password>, and <your-cluster-url> to reflect your cluster.
66
* See http://bit.ly/NodeDocs_lauren for more details
77
*/
8-
const uri = "mongodb+srv://<username>:<password>@<your-cluster-url>/test?retryWrites=true&w=majority";
8+
const uri = "mongodb+srv://<username>:<password>@<your-cluster-url>/sample_airbnb?retryWrites=true&w=majority";
99

1010
/**
1111
* The Mongo Client you will use to interact with your database

‎transaction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ async function main() {
88
* Connection URI. Update <username>, <password>, and <your-cluster-url> to reflect your cluster.
99
* See http://bit.ly/NodeDocs_lauren for more details
1010
*/
11-
const uri = "mongodb+srv://<username>:<password>@<your-cluster-url>/test?retryWrites=true&w=majority";
11+
const uri = "mongodb+srv://<username>:<password>@<your-cluster-url>/sample_airbnb?retryWrites=true&w=majority";
1212

1313
/**
1414
* The Mongo Client you will use to interact with your database

‎update.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ async function main() {
55
* Connection URI. Update <username>, <password>, and <your-cluster-url> to reflect your cluster.
66
* See http://bit.ly/NodeDocs_lauren for more details
77
*/
8-
const uri = "mongodb+srv://<username>:<password>@<your-cluster-url>/test?retryWrites=true&w=majority";
8+
const uri = "mongodb+srv://<username>:<password>@<your-cluster-url>/sample_airbnb?retryWrites=true&w=majority";
99

1010
/**
1111
* The Mongo Client you will use to interact with your database

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /