I want to organize my REST APIs in different modules,
I am wondering if I use connectMongoDB
in these classes (or even in functions)
are some kind of bad practice?
Or should I use connectMongoDB
once,
then pass the MongoClient
through class constructor?
Thanks!