-
-
Notifications
You must be signed in to change notification settings - Fork 605
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
Integration with strawberry (graphql queries) and pydastic (elastic search). #516
Comments
from sqlmodel import SQLModel, Field Define your SQLModelclass Item(SQLModel, table=True): Define Pydantic model for validationclass ItemPydantic(BaseModel): Define Strawberry GraphQL schema@Schema Define Strawberry GraphQL query@strawberry.type Define Strawberry GraphQL mutation@strawberry.type Create Strawberry GraphQL⬤ |
First Check
Commit to Help
Example Code
-
Description
As per title. Would be great if we had one model that could work with pydastic and strawberry queries. Maybe I'm naïve....
Wanted Solution
I would want execute strawberry and pydastic queries/insertions on a SQLModel.
Wanted Code
-
Alternatives
Asking the same in the the strawberry and pydastic repos.
Creating a new project to incorporate all 3....
Operating System
Windows
Operating System Details
Windows 11 home
SQLModel Version
0.0.8
Python Version
3.10
Additional Context
strawberry-graphql/strawberry#1183
Might be some code/additional context here.
The text was updated successfully, but these errors were encountered: