MongoDB connection
This module connects to the MongoDB database using Mongoose.
- Description:
- MongoDB connection This module connects to the MongoDB database using Mongoose.
- Source:
Requires
Methods
(async, static) mongoConnection() → {Promise.<void>}
- Description:
- MongoDB connection function. This function connects to the MongoDB database using Mongoose and logs the connection status. It is called when server starts.
- Source:
Returns:
A promise that resolves when the connection is established or rejects if there is an error.
- Type
- Promise.<void>