From 24389b1c945062a960cf65b900aaa350d69d5e85 Mon Sep 17 00:00:00 2001 From: Kasun Thennakoon Date: Tue, 13 Jun 2023 11:39:13 -0400 Subject: [PATCH] Update app.js Change the commented doc to reflect the correct method name in `collection` object --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index b471157..b89c3b4 100644 --- a/app.js +++ b/app.js @@ -32,7 +32,7 @@ async function run() { /* * *** INSERT DOCUMENTS *** * - * You can insert individual documents using collection.insert(). + * You can insert individual documents using collection.insertOne(). * In this example, we're going to create four documents and then * insert them all in one call with collection.insertMany(). */