We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f01569a commit b36a4c0Copy full SHA for b36a4c0
src/app.ts
@@ -30,7 +30,7 @@ const app = express();
30
const mongoUrl = MONGODB_URI;
31
mongoose.Promise = bluebird;
32
33
-mongoose.connect(mongoUrl, { useNewUrlParser: true} ).then(
+mongoose.connect(mongoUrl, { useNewUrlParser: true, useCreateIndex: true } ).then(
34
() => { /** ready to use. The `mongoose.connect()` promise resolves to undefined. */ },
35
).catch(err => {
36
console.log("MongoDB connection error. Please make sure MongoDB is running. " + err);
0 commit comments