-
Notifications
You must be signed in to change notification settings - Fork 348
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
Mesh prefixes variable names #5097
Comments
I don't think this can be changed because Mesh doesn't forward queries from the gateway to the services as-is. It generates a new query based on the gateway's request. It uses prefixes due to some internal reasons. |
Funny thing is that it doesn't always happens. Will play tomorrow again with sandbox to try to reproduce it. Locally when there are 2 sources - it happens, but in sandbox it doesn't happens. Can you point me to the code which internally generates the new docs so I can put breakpoints there? Thanks. |
I was able to reproduce it here: https://github.com/Warxcell/graphql-mesh-renaming-vars with following query
vars:
result: |
Issue workflow progress
Progress of the issue based on the
Contributor Workflow
Github,
Stackblitz
or
CodeSandbox
Describe the bug
graphql-mesh prefixes some of variables with
_v1_
which makes it confusing, the client ends-up in non-sense error: "the variables which doesn't exists have wrong value.To Reproduce Steps to reproduce the behavior:
Tried to reproduce it on sandbox, but couldn't
Expected behavior
Variables to stay as they are.
Environment:
"@graphql-mesh/graphql@^0.33": version "0.33.8"
Additional context
I was trying to find where this prefix comes from without any success.
Leaving single source fixes the issue.
The text was updated successfully, but these errors were encountered: