Skip to content

database

Initialize the MongoDB database.

MONGO_CLIENT = AsyncIOMotorClient(CONFIG.mongo_uri, **mongo_client_configuration) module-attribute

The MongoDB motor client.

MONGO_DB = MONGO_CLIENT[CONFIG.mongo_database] module-attribute

The MongoDB motor database. This is a representation of the database used for the gateway service.