My schema has enums with the value "TRUE" in them, remove the "TRUE"s and everything works fine.
Works
enum VideoDimensionSearchEnumParam {
_2d
_3d
any
}
Breaks everything
enum VideoDimensionSearchEnumParam {
_2d
_3d
any
TRUE
}
I'm running into this as well. FALSE also breaks the schema, unsurprisingly.
I'm guessing this is a result of https://github.com/jimkyndemeyer/js-graphql-intellij-plugin/blob/master/src/grammars/GraphQLParser.bnf#L103
The lowercase values are specified there (as per the GraphQL spec https://graphql.github.io/graphql-spec/June2018/#sec-Enum-Value, true, false, and null are invalid enum values).
However, according to https://tools.ietf.org/html/rfc7405, string literals are matched case insensitively in BNF.
Fixed in the upcoming 2.1.1 release.
Most helpful comment
I'm running into this as well. FALSE also breaks the schema, unsurprisingly.