You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
String is a valid GraphQL name, so this is more an issue with the generated code, than an issue with hasura itself.
As such, removing the bug label and adding the enhancement label.
This issue may also be resolvable with your codegen tool of choice.
While I am unfamiliar with dart, most languages allow use of reserved words as keys in JSON objects, if correctly escaped.
Edit: Please note I am not closing this issue, as this is valid feedback.
If you are another user affected by this problem, please leave feedback here so we can better gauge the impact of this particular change.
Version Information
Server Version: 2.8.0
CLI Version (for CLI related issue): 2.8.0
Environment
OSS
What is the expected behaviour?
Fields in the graphql schema don't clash with graphql types and common reserved words in many languages.
Keywords
cast, String, jsonb
What is the current behaviour?
Schema contains fields named
String
. E.g.:How to reproduce the issue?
Screenshots or Screencast
Error in autogenerated dart code for flutter app:
Please provide any traces or logs that could help here.
Issue exists with JSONB since 2.5.0, but recently it was added to other types in this PR: #8524
Any possible solutions?
Use
string
or_String
.Can you identify the location in the source code where the problem exists?
Not sure.
If the bug is confirmed, would you be willing to submit a PR?
If someone can point me to the code, yes.
The text was updated successfully, but these errors were encountered: