Hello, community
Hope you are doing well.
I am building simple express backend api server.
Run this command in project terminal.
node --trace-deprecation src/index.js
And I can see following error.
(node:17196) [MONGOOSE] DeprecationWarning: Mongoose: the `strictQuery` option will be switched back to `false` by default in Mongoose 7. Use `mongoose.set('strictQuery', false);` if you want to prepare for this change. Or use `mongoose.set('strictQuery', true);` to suppress this warning.
at Mongoose.connect (E:\my-project\node_modules\mongoose\lib\index.js:405:5)
at main (E:\my-project\src\index.js:13:18)
at Object.<anonymous> (E:\XXXXXXXXXXX\express-basic-backend-structure\src\index.js:10:1)
at Module._compile (node:internal/modules/cjs/loader:1218:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
at Module.load (node:internal/modules/cjs/loader:1081:32)
at Module._load (node:internal/modules/cjs/loader:922:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
I need your help.
Used Express 4.18.2, MongoDB 6.04, Node.js 18.13.0, mongoose 6.84
Thanks in advance.