aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/index.js b/index.js
index 177502b..b219657 100644
--- a/index.js
+++ b/index.js
@@ -4,7 +4,11 @@ const mongoose = require('mongoose');
const webRoutes = require('./routes/web');
const app = express();
-mongoose.connect('mongodb://localhost/playground_db', {useNewUrlParser: true, useUnifiedTopology: true});
+mongoose.connect('mongodb://localhost/playground_db', {
+ useNewUrlParser: true,
+ useUnifiedTopology: true,
+ useFindAndModify: false
+});
app.engine('handlebars', exphbs());
app.set('view engine', 'handlebars');