From the below documentation, I have established a connection to mongodb instance. However, the returned object does not have ‘close’ as a function. How do I close this connection?
Connect to a Linked Cluster
To access a linked cluster from your client application, pass the cluster name to User.mongoClient(). This returns a MongoDB service interface that you can use to access databases and collections in the cluster.
const mongodb = app.currentUser.mongoClient("mongodb-atlas");
const plants = mongodb.db("example").collection("plants");