This commit is contained in:
Expand 2023-12-20 11:05:40 +11:00
parent 6d0ca1ff18
commit 88cfa63f5e

View file

@ -18,7 +18,7 @@ async function run() {
await dbclient.connect();
// Send a ping to confirm a successful connection
await dbclient.db("admin").command({ ping: 1 });
console.log("Pinged your deployment. You successfully connected to MongoDB!");
console.log("Pinged your deployment. Successfully connected to MongoDB!");
} finally {
// Ensures that the client will close when you finish/error
await dbclient.close();