Question: how can i fix this? [ nodemon ] starting ` node server.js ` ( node: 2 5 3 4 0 ) [ MONGOOSE ] DeprecationWarning:

how can i fix this? [nodemon] starting `node server.js`
(node:25340)[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.
(Use `node --trace-deprecation ...` to show where the warning was created)
MongoServerError: bad auth : authentication failed
at Connection.onMessage (C:\Users\pauli_2wm671y\p.habbecke-us-states
ode_modules\mongodb\lib\cmap\connection.js:231:30)
at MessageStream. (C:\Users\pauli_2wm671y\p.habbecke-us-states
ode_modules\mongodb\lib\cmap\connection.js:61:60)
at MessageStream.emit (node:events:518:28)
at processIncomingData (C:\Users\pauli_2wm671y\p.habbecke-us-states
ode_modules\mongodb\lib\cmap\message_stream.js:125:16)
at MessageStream._write (C:\Users\pauli_2wm671y\p.habbecke-us-states
ode_modules\mongodb\lib\cmap\message_stream.js:33:9)
at writeOrBuffer (node:internal/streams/writable:564:12)
at _write (node:internal/streams/writable:493:10)
at Writable.write (node:internal/streams/writable:502:10)
at TLSSocket.ondata (node:internal/streams/readable:1007:22)
at TLSSocket.emit (node:events:518:28){
ok: 0,
code: 8000,
codeName: 'AtlasError',
connectionGeneration: 0,
[Symbol(errorLabels)]: Set(2){ 'HandshakeError', 'ResetPool' }
}
[nodemon] clean exit - waiting for changes before restart

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!