Skip to content
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

Variables from subfields are not correctly recovered #323

Open
flonou opened this issue Oct 13, 2024 · 0 comments · May be fixed by #325
Open

Variables from subfields are not correctly recovered #323

flonou opened this issue Oct 13, 2024 · 0 comments · May be fixed by #325

Comments

@flonou
Copy link

flonou commented Oct 13, 2024

Hi!
I have a query with variables in the main query but also in a subfield. When the query is created, the subfields' variables are not included in the request.
I think it comes from https://github.com/mirumee/ariadne-codegen/blame/11bfe35bd62b2489927e0e93c6891bccc29c7f37/ariadne_codegen/client_generators/dependencies/base_operation.py#L148 where the result is not saved into a variables and passed to formatted_variables.update beneath.
I think the same applies to https://github.com/mirumee/ariadne-codegen/blame/11bfe35bd62b2489927e0e93c6891bccc29c7f37/ariadne_codegen/client_generators/dependencies/base_operation.py#L154

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant