-
Probably use ODMantic: https://github.com/art049/odmantic
How would you test the implementation? mock a mongo db?
-
# 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
…
-
There are several ORMs that I know of, including:
SQL:
- [SQLModel](https://github.com/tiangolo/sqlmodel)
- [Tortoise](https://github.com/tortoise/tortoise-orm)
- [Pony](https://github.com/pon…
-
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 import Optional
from odmantic i…
-
# Feature request
I just discovered this I really love it :heart:
### Context
I was testing FastAPI and came to odmantic as I am using mongoDB. I have a question regarding creating a model. …
-
I have a code like this:
```python
from odmantic import Field, Model, EmbeddedModel, Reference
from typing import List
class Revision(EmbeddedModel):
modified_by: "User" = Reference()
cl…
-
# Bug
Using 'exclude_none' in .update function does not work for fields in embedded models
### Current Behavior
Create 'model' with embedded model in field. Use 'exclude_none' in 'model.updat…
-
**Is your feature request related to a problem? Please describe.**
Can't create child records within the parent create or edit page like the Odmantic demo on the [Starlette Admin Demo](https://starle…
-
Trying to use db_engine.configure_database([User]) but as we need to await it, it cannot be directly run without any async function declared and called. Do you need to create a factory for this?
Th…
-
# 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, I get the error: `TypeError: 'NoneType' object is…