How to save variables name when using batch: true? #6297
Unanswered
kemper0110
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have problem with variables renaming, when requests are merged/batched in mergeRequests.ts.
This exact query works well:
Pay attention to
cond: "root.$id == ${id}"
. There is interpolation of$id
variable to string expression processed by graphql endpoint implementation (not on client). @strExpr directive used to suppress graphql warning.I have problem with this query:
There are two root fields are using variable interpolation.
Batching Executor generates this query:
For this query my graphql endpoint cries for null
$id
value because they have been renamed to $_0_id and $_1_id.How can I fix this situtation preferable without updating graphql endpoint implementation and why this renaming is produced?
Beta Was this translation helpful? Give feedback.
All reactions