# Use MongoDB reliably in async agents and workflows

> Resolved an incorrect import of the pymongo async modules that could cause runtime failures when using MongoDB with async agents or workflows.

- Published: 2026-03-17
- Author: Agno Team
- Category: Changelog
- Canonical: https://agno-com-nine.vercel.app/articles/fix-incorrect-async-module-import-in-mongodb
- Markdown: https://agno-com-nine.vercel.app/articles/fix-incorrect-async-module-import-in-mongodb.md

Resolved an incorrect import of the `pymongo` async modules that could cause runtime failures when using MongoDB with async agents or workflows. The import now correctly references the async-compatible pymongo interfaces.

Details**:**

- Fixes a broken import path for `pymongo` async modules in the MongoDB database backend
- Resolves runtime errors encountered when running async agents or workflows with MongoDB storage
- No configuration changes required; upgrading applies the fix automatically
