This package is designed to manage MongoDB connections globaly, it's useful if you have a project that has code splitted in multiple files and modules. All you need is just configure the database where you initiate your code, and require it in other files. I'll show you examples.
Also if your project is refactored into multiple files/modules you can access the client at
// models/getUsers.jslimit = 20 skip = 0return MongoDBclient
You can use
@oudy/mongodb to connect easily with multiple databases
if you want to access to
eu databases from other files you can use
// models/files.jsregion limit = 20 skip = 0return MongoDB