import pymongo def get_connection(collection:str): client = pymongo.MongoClient('mongodb://easybistro:xejP3257@database/Easybistro?authSource=admin&retryWrites=true&w=majority') return client['easybistro'][collection]