-
**Describe the bug**
Using pydantic V2 `import starlette_admin.contrib.odmantic.Admin` results in an import error because pydantic.color is moved to pydantic_extra_types.color.
See the [migratio…
-
# 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
…
-
# Feature request
Hey everyone. I recently came across this package and immediately fell in love; In fact, I am using it to build [a pretty damn project](https://github.com/brave-date/brave-date-se…
-
I'm considering separating interface classes and persistence classes. Interface classes are the ones used in OpenAPI, i.e. in request / responses. Persistence classes are used when storing or retrievi…
erny updated
7 months ago
-
# Feature request
Does it makes sense to implement the [Schema Versioning Pattern](https://www.mongodb.com/blog/post/building-with-patterns-the-schema-versioning-pattern) on ODMantic?
### Contex…
-
# Feature request
### Context
1. mongo raw query can do: `db.test.findOne({}, {'name': 1})`, and i don't find any example that odmantic can do the same feature
2. Can odmantic do: `engine.find(…
xmstu updated
2 years ago
-
# 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
```
…
-
# Bug
_A clear and concise description of what the bug is._
Pydantic has a nice feature around computed fields that allow you to create an attribute based on logic in other fields, however these…
-
# 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 sessions
…
-
# Bug
```python
# odmantic model
class User(odmantic.Model):
username: str
password: str
# model in fastapi for response
class CurrentUser(User):
token: str
class LoginFor…