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 simple schema with this object definition
typeService {
name : String
port : Int
}
This causes graphqelm to throw an error, which actually seems to come from elm-format. The error message is formated weird so I won't paste it here.
Looking at the generated code (and the elm-format error) it was clear that port can not be used as a field name. I expect the same will be true for other words like module and import.
This is not a big problem, so this issue is more to see if it was possible to catch this naming clash with relevant reserved words in Elm and display a better error message.
The text was updated successfully, but these errors were encountered:
I have a simple schema with this object definition
This causes graphqelm to throw an error, which actually seems to come from elm-format. The error message is formated weird so I won't paste it here.
Looking at the generated code (and the elm-format error) it was clear that
port
can not be used as a field name. I expect the same will be true for other words likemodule
andimport
.This is not a big problem, so this issue is more to see if it was possible to catch this naming clash with relevant reserved words in Elm and display a better error message.
The text was updated successfully, but these errors were encountered: