-
Notifications
You must be signed in to change notification settings - Fork 96
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
codegen error: 'data' redeclared in this block #279
Comments
6 tasks
benjaminjkraft
added a commit
that referenced
this issue
Aug 1, 2023
This PR makes [THIS ISSUE](#279) a lot less likely to occur. The local name "data" in generated functions was colliding with arguments called "data". Note that no explicit name collision check was added, but "data" inside the function was just renamed to "data_" to make it less likely to collide with arguments. --------- Co-authored-by: Ben Kraft <[email protected]>
Common cases of this are fixed in #291. Leaving this open for a general fix. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using Hasura scheme. the generated code is using a redeclared variable which is causing
'data' redeclared in this block
error.I have to mutually edit
UpsertDeviceResponse
fromdata
todata2
is there any workaround?
manual fix
query
'data' redeclared in this block
The text was updated successfully, but these errors were encountered: