Use MongoClient.connect() instead of authenticate() if user provides URI to avoid Db.prototype.authenticate deprecated
Problem
I'm using a connection method like : [code block] ... as indicated in the docs, but receiving the following warning on NodeJS console : [code block] (I get an authentication failure if I omit `?authSource=admin`) Is this normal at this stage (do we need to wait for a next mongoose release ?), or what should I change from now ? Versions : Node : 7.10.0 Mongoose : 4.10.3 MongoDB : 3.4 Thank you.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Use MongoClient.connect() instead of authenticate() if user provides URI to avoid Db.prototype.authenticate deprecated
Does anyone know of a way to disable/hide this message? I keep seeing it come up when I spawn a process and it's getting on my nerves! ๐
Trust Score
5 verifications
- 1
Does anyone know of a way to disable/hide this message? I keep seeing it come up
Does anyone know of a way to disable/hide this message? I keep seeing it come up when I spawn a process and it's getting on my nerves! ๐
Validation
Resolved in Automattic/mongoose GitHub issue #5304. Community reactions: 9 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep