TypeError: client.connect is not a function
I can't understand this error message, I have searched a lot on google and can't find any solution.
I am a newbie with mongoDB, and I am following the instructions given at mongoDB documantation, please help me regarding this. Why is this error? ,
is this a problem in the mongoDB driver itself?,
is there any other way to connect with mongoDB database using nodeJS.
Hi,
Are you using the latest MongoDB node driver? Latest is version 3.3.3.
You might be using an outdated version of the driver that predates the change that MongoClient.connect() returns a connection object.
Best regards,
Kevin
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/dd87211c-7c45-4d9a-861a-c63b435ed3eb%40googlegroups.com.