odmantic
odmantic copied to clipboard
Sync and Async ODM (Object Document Mapper) for MongoDB based on python type hints
Collation is still missing from ODMantic, I'm pretty sure implementing this would help a lot of users! ### Discussed in https://github.com/art049/odmantic/discussions/157 Originally posted by **tylovejoy** July 13, 2021 I use...
# Bug it will raise unwanted validation type error when a model has many optional field; pydantic won't raise any error from odmantic import Model,Field from pydantic import BaseModel from...
# Bug No matter how you type hint a field in the base model that references an embedded one (including future annotations), defining indexes for fields that are in the...
Updates the requirements on [uvicorn](https://github.com/encode/uvicorn) to permit the latest version. Release notes Sourced from uvicorn's releases. Version 0.26.0 Changed Update --root-path to include the root path prefix in the full...
The function automatically adds an example that changes all the time (date.now()) In my opinion that's a wrong practice and we should let every developer to decide on that.
# Question I'd really love to use odmantic/fastapi to replace my current database setup (dynamodb) Yet any way I try to implement testcases seem to fail as mongomock doesn't support...
# Bug Following the odmantic 1.0.0 examples and trying to upgrade odmantic/pydantic to V2 , I can find several issues in mypy. Errors explained as comments below. ### Current Behavior...
I'm trying to update my code to Odmantic 1.0.0, Pydantic 2.5.2 and also start using Python 3.11, but when I define one of my classes like this: ```python from typing...