-
Notifications
You must be signed in to change notification settings - Fork 0
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
Check native dataclasses work #1
Comments
I have tried testing this simple example but unfortunately it does not work with the plain dataclass. When starting up the Strawberry server I get an error ' |
You might be able to do something like this for dataclasses |
Thanks for the idea! This implementation of native dataclasses with
|
A more complicated check is if we can directly integrate a schema generated by 'apischema' (https://wyfo.github.io/apischema/0.17/graphql/overview/) in Strawberry. Potentially we could use the engine from FastAPI. I tried to get Strawberry to use a schema generated by apischema but I don't think this is possible. I got the apischema working and creating a schema from the code but I cannot see how to inject this into a Strawberry + FastAPI implementation. Strawberry will only work with a |
Take the example off the strawberry page:
Would this also work with plain dataclasses?
The text was updated successfully, but these errors were encountered: