Skip to content
This repository was archived by the owner on May 16, 2026. It is now read-only.

Commit ff280df

Browse files
committed
set strictQuery to false before mongoose.connect method
1 parent bf39916 commit ff280df

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ app.use((error, req, res, next) => {
5454

5555
(async () => {
5656
console.log(`Connecting to MongoDB ${`(db: "${process.env.MONGO_DB_NAME}")`.grey}`.yellow);
57+
mongoose.set('strictQuery', false);
5758
await mongoose.connect(process.env.MONGO_URI, {
5859
useNewUrlParser: true,
5960
useUnifiedTopology: true,

0 commit comments

Comments
 (0)