database¶
Initialize the MongoDB database.
MONGO_CLIENT: MongoClient = AsyncIOMotorClient(CONFIG.mongo_uri, appname='optimade-gateway', readConcernLevel='majority', readPreference='primary', w='majority')
module-attribute
¶
The MongoDB motor client.
MONGO_DB: Database = MONGO_CLIENT[CONFIG.mongo_database]
module-attribute
¶
The MongoDB motor database. This is a representation of the database used for the gateway service.