-
Notifications
You must be signed in to change notification settings - Fork 30
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
Incorrect default value for queries with @include
directive
#272
Comments
Issue seems to be here: https://github.com/mirumee/ariadne-codegen/blob/main/ariadne_codegen/client_generators/result_types.py#L391-L418 We are not assigning positional arg for default or |
I think we should also fix the What do you guys think? |
@rafalp Can you take a look at this issue? I have already fixed it in local repo, I can create PR for the same. |
Is this issue fixed on master? encountering the same problem. |
Waiting for @rafalp's permission. |
I don't think you need permission to create a PR. I would suggest just creating it so it can be reviewed when maintainers have the time and while waiting hopefully others will see it and be able to test it or spot things that might require further changes. |
First of all, I loved the project. It has everything that anyone can expect.
Recently I ran into an issue, When the field name is in camelCase and uses
@include
directive the generated pydantic code doesn't generate proper default value (None
)I have used https://graphqlzero.almansi.me/api schema for testing purpose
queries.graphql
:generated pydantic code:
post_data
should beField(None, alias="postData")
because it's optional.The text was updated successfully, but these errors were encountered: