pluto90's picture
Updated Backend
e77d42d
raw
history blame contribute delete
214 Bytes
# database.py
from motor.motor_asyncio import AsyncIOMotorClient
from app.config import get_settings
settings = get_settings()
client = AsyncIOMotorClient(settings.mongo_url)
db = client[settings.mongo_db_name]