From 13310931ea29a487a508a9c920b053f8fa107a87 Mon Sep 17 00:00:00 2001 From: Colum Kelly Date: Thu, 18 Jan 2024 22:14:40 -0800 Subject: [PATCH] Remove deprecated option from mongoose connection --- nodeJS/testing_express/testing_database_operations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodeJS/testing_express/testing_database_operations.md b/nodeJS/testing_express/testing_database_operations.md index 071f4b033f8..c1b33f02424 100644 --- a/nodeJS/testing_express/testing_database_operations.md +++ b/nodeJS/testing_express/testing_database_operations.md @@ -28,7 +28,7 @@ const mongoose = require("mongoose"); const mongoDb = `YOUR MONGO URL`; -mongoose.connect(mongoDb, { useNewUrlParser: true }); +mongoose.connect(mongoDb); const db = mongoose.connection; db.on("error", console.error.bind(console, "mongo connection error")); ```