Skip to content

Commit 77735fe

Browse files
committed
get collection mongo
1 parent 68d4aee commit 77735fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mongo.js

+2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ const connectionString = "mongodb://user_latihan:123456@localhost:27017?authSour
1919
const db = client.db("latihan")
2020
// get collection table
2121
const quote = await db.collection("quote").find().toArray()
22+
const coba = await db.collection("coba").find().toArray()
2223
console.table(quote);
24+
console.table(coba);
2325
} catch (error) {
2426
console.log(error);
2527
}

0 commit comments

Comments
 (0)