Skip to content

Commit 934a0a4

Browse files
committed
examples
1 parent aed7374 commit 934a0a4

6 files changed

+2
-2
lines changed

β€Žexample/ex1-mongodb.js β€Žexamples/ex1-mongodb.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ MongoClient.connect(url, { useNewUrlParser: true }, async (err, client) => {
1616
const collection = await db.createCollection(collectionName);
1717

1818
// *****
19-
// 1. insert a record with a v1 uuid
19+
// 1. insert a record with a v1 uuid
2020
const insertResult = await collection.insertOne({
2121
_id: MUUID.v1(),
2222
name: 'carmine',
2323
});
2424

25-
// retrieve the newly inserted document's UUID
25+
// retrieve the newly inserted document's UUID
2626
// and print it as a human readable string
2727
const insertedId = MUUID.from(insertResult.insertedId).toString();
2828
console.log(`insertOne with id ${insertedId} succeeded`);
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
Β (0)