Open
Description
Defining a field with a capitalized name does not work, but the error message still suggests using the capitalized name when attempting to query it.
query do
field :Foo, type: :string, resolve: fn
_, _ -> {:ok, "Bar"}
end
end
When running the query query {Foo}
this returns:
{
"errors": [
{
"message": "Cannot query field \"Foo\" on type \"RootQueryType\". Did you mean \"Foo\"?",
"locations": [
{
"line": 1,
"column": 0
}
]
}
]
}