src.internal.dependencies.mongo_client module#

Database Connection to MongoDB

src.internal.dependencies.mongo_client.get_db() Tuple[motor.motor_asyncio.AsyncIOMotorDatabase, motor.motor_asyncio.AsyncIOMotorClient][source]#

Get MongoDB connection

Returns:

Connection to MongoDB and Client

Return type:

Tuple[AsyncIOMotorDatabase, AsyncIOMotorClient]