Main Class
The Documentation for the main class of abc.db
Last updated
Was this helpful?
The Documentation for the main class of abc.db
Last updated
Was this helpful?
The main class of abc.db is where you connect to your MongoDB and pass any options you wish to passed into the connections (these are optional)
To begin using abc.db, you need a mongo db cluster which you can get for free or host locally.
The main class has some events as it extends the event emitter, below you can find them
This event is triggered when the db connects successfully, also includes when the connection reconnects after being closed.
This event is triggered when the db disconnects and includes when the connection is closed.
This event is triggered when the db reconnects after being disconnected, excludes when the connection is closed
To use any methods without an error, you must call this method and make sure it is run with await or .then (treated as a promise essentially)
To make a new collection (you can have as many of these as you want) type:
Refer to for more info