-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pydantic v2 Incompatability with strawberry-graphql
#612
Comments
|
Is this a change in Pydantic v2 in |
class A(JsonModel):
name: str = Field(index=True)
a = await A.find(A.name == 'foo').first() the type of I don't think this behavior is any different in v0.3.x vs v0.2.x |
redis-om on version
0.3.0
with pydantic v2 raises this following error.I see this issue with
HashModel
JsonModel
andEmbeddedJsonModel
being used.If I have an object with redis-om but its not part of the graphql schema then I only get the below warning
Using regular
BaseModel
from pydantic seems to work fine.So I've triaged the issue to changes in redis-om
Has there been some kind of Union with
str
attached to JsonModel and EmbeddedJsonModel? I'd love to be able to resolve this issue.The text was updated successfully, but these errors were encountered: