IsConnected not a function in next.js app

In the Next.js example, they used mongodb@^3.5.9.

mongo@latest, which is 4.1.1 as of today, does not have isConnected method on MongoClient as far as I see. So if you just installed mongo in your own project, this might be it.

1 Like