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
I have a GraphQL enum with values "public" and "other".
enumVisibility {
public other
}
and query similar to:
moduleMyThingFragment= [%graphql {|
fragment MyThingFragment on ListedShift {
visibility
}
|}];
Apparently "public" becomes `public_ (note underscore) but something else is wrong in the generated code and it's still looking for `public (without underscore) as I get an error that says:
Error: This pattern matches values of type [? `public ]
but a pattern was expected which matches values of type
t_visibility
The second variant type does not allow tag(s) `public
The text was updated successfully, but these errors were encountered:
We have to add an _ to poly variants that are keywords. It looks like it is somehow not escaped everywhere in the generated code, thanks for the bug report!
I have a GraphQL enum with values "public" and "other".
and query similar to:
Apparently "public" becomes
`public_
(note underscore) but something else is wrong in the generated code and it's still looking for`public
(without underscore) as I get an error that says:The text was updated successfully, but these errors were encountered: