import { Db , MongoClient } from 'mongodb' ; let mongoDb ; let mongoClient ; export const MongoDbConnection = { getDb ( ) { return mongoDb ; } , setDb ( db ) { mongoDb = db ; } , getClient ( ) { return mongoClient ; } , setClient ( client ) { mongoClient = client ; } } ;