odmantic
odmantic copied to clipboard
Sync and Async ODM (Object Document Mapper) for MongoDB based on python type hints
Fixes #321.
Fixes #272
✨ Use `bulk_write` for save operations, including referenced documents
# Bug ``` Traceback (most recent call last): File "D:\-\__init__.py", line 1, in from odmantic import AIOEngine File "D:\-\venv\Lib\site-packages\odmantic\__init__.py", line 1, in from .bson import ObjectId File "D:\-\venv\Lib\site-packages\odmantic\bson.py", line 11,...
Hey @tiangolo @art049 .. was wondering if any specific reason that model inheritance isn't supported at the moment? Any plans of adding this feature? Also, are there plans of maintaining...
# Bug Somehow related to #350 with both situations I faced and I couldn't solve. ``` python import traceback from odmantic import Model, EmbeddedModel, Field from typing import Optional class...
# Bug Dev container fails to start. Container dependency in [.devcontainer/Dockerfile](https://github.com/art049/odmantic/blob/master/.devcontainer/Dockerfile) called [multi-python](https://github.com/fkrull/docker-multi-python) is deprecated. Failure during container start gives "failed to find package fkrull/docker-multi-python" as the cause. A visit...
# Bug I have an Optional EmbeddedModel inside my main model. If I don't set a value for it, when the engine tries to save the data in the database,...
ODMantic is fantastic for my web services. I can focus on data structure definition, then persistence and async serving is super easy. However, the MongoDB license might be restrictive for...
After Pydantic docs domain has changed, some URLs have stopped working: https://pydantic-docs.helpmanual.io/usage/types https://pydantic-docs.helpmanual.io/usage/exporting_models/#json_encoders Even though Pydantic has done redirects, some still fail. I suggest to update all URLs to new...