diff --git a/docs/en/docs/how-to/async-mongodb-motor-beanie.md b/docs/en/docs/how-to/async-mongodb-motor-beanie.md index 7b033b25d..8ab7da987 100644 --- a/docs/en/docs/how-to/async-mongodb-motor-beanie.md +++ b/docs/en/docs/how-to/async-mongodb-motor-beanie.md @@ -46,7 +46,7 @@ app = FastAPI() @app.post("/items/") async def create_item(item: dict) -> str: - collection = db.client.mydatabase.items + collection = db.client.mydatabase.items result = await collection.insert_one(item) return {"id": str(result.inserted_id)} ```