1.0.1
Client connected to MongoDB
(object)
for the new connection
const client = new Client({db: 'example'})
Create a new collection instance of the given name
(string)
of the collection
const collection = client.collection('foo')
Open connection to db and return collection of provided name
(string)
of the collection to open up connection to in db
Promise
:
collection instance
Close the connection to database
boolean
:
success of closing the connection
client.close()
Represents a a collection in MongoDB
(any)
(any)