-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[Batching] Query merging seems to discard variables only used in directives #577
Comments
I'll try to take a look at it, if I find something, let's do a PR! |
But believe me, once I'm able to activate batching in my codebase, trust me, that means the feature is really stable, I have all of the twisted scenarios you can expect! 😆 |
Yeah, this can be fixed pretty easily by looking into directives within |
@Poincare pretty busy right now but will do when I have time, thanks for the pointers! |
Query merging should be able to merge queries with variables in directives correctly: tests if the variables in a directive are correctly merged.
In query merging, explore directives for varaiable usage and rename effectively the variables.
Query merging should be able to merge queries with variables in directives correctly: tests if the variables in a directive are correctly merged.
In query merging, explore directives for varaiable usage and rename effectively the variables.
Query merging should be able to merge queries with variables in directives correctly: tests if the variables in a directive are correctly merged.
In query merging, explore directives for varaiable usage and rename effectively the variables.
Query merging should be able to merge queries with variables in directives correctly: tests if the variables in a directive are correctly merged.
In query merging, explore directives for varaiable usage and rename effectively the variables.
* Add failing test reproducing #577 Query merging should be able to merge queries with variables in directives correctly: tests if the variables in a directive are correctly merged. * Fix #577 by exploring directives for renaming In query merging, explore directives for varaiable usage and rename effectively the variables. * Add to changelog the changes by #584
Similarly to #562, when we activate batching with
shouldBatch
, variables only used in directives are not injected correctly in the merged query.For instance, let's say I'm performing the following query:
it will be rendered in the batch query the following way:
Resulting in the following error:
The text was updated successfully, but these errors were encountered: