{"action":"created","issue":{"url":"https://api.github.com/repos/absinthe-graphql/absinthe/issues/298","repository_url":"https://api.github.com/repos/absinthe-graphql/absinthe","labels_url":"https://api.github.com/repos/absinthe-graphql/absinthe/issues/298/labels{/name}","comments_url":"https://api.github.com/repos/absinthe-graphql/absinthe/issues/298/comments","events_url":"https://api.github.com/repos/absinthe-graphql/absinthe/issues/298/events","html_url":"https://github.com/absinthe-graphql/absinthe/issues/298","id":216826222,"number":298,"title":"Capitalized field names yields bad error message","user":{"login":"bjornarg","id":275651,"avatar_url":"https://avatars2.githubusercontent.com/u/275651?v=4","gravatar_id":"","url":"https://api.github.com/users/bjornarg","html_url":"https://github.com/bjornarg","followers_url":"https://api.github.com/users/bjornarg/followers","following_url":"https://api.github.com/users/bjornarg/following{/other_user}","gists_url":"https://api.github.com/users/bjornarg/gists{/gist_id}","starred_url":"https://api.github.com/users/bjornarg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjornarg/subscriptions","organizations_url":"https://api.github.com/users/bjornarg/orgs","repos_url":"https://api.github.com/users/bjornarg/repos","events_url":"https://api.github.com/users/bjornarg/events{/privacy}","received_events_url":"https://api.github.com/users/bjornarg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-03-24T15:46:49Z","updated_at":"2017-10-25T08:21:08Z","closed_at":null,"author_association":"NONE","body":"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.\r\n\r\n```\r\nquery do\r\n    field :Foo, type: :string, resolve: fn\r\n      _, _ -> {:ok, \"Bar\"}\r\n    end\r\nend\r\n```\r\n\r\nWhen running the query `query {Foo}` this returns:\r\n```\r\n{\r\n  \"errors\": [\r\n    {\r\n      \"message\": \"Cannot query field \\\"Foo\\\" on type \\\"RootQueryType\\\". Did you mean \\\"Foo\\\"?\",\r\n      \"locations\": [\r\n        {\r\n          \"line\": 1,\r\n          \"column\": 0\r\n        }\r\n      ]\r\n    }\r\n  ]\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/absinthe-graphql/absinthe/issues/comments/339252858","html_url":"https://github.com/absinthe-graphql/absinthe/issues/298#issuecomment-339252858","issue_url":"https://api.github.com/repos/absinthe-graphql/absinthe/issues/298","id":339252858,"user":{"login":"bruce","id":72,"avatar_url":"https://avatars0.githubusercontent.com/u/72?v=4","gravatar_id":"","url":"https://api.github.com/users/bruce","html_url":"https://github.com/bruce","followers_url":"https://api.github.com/users/bruce/followers","following_url":"https://api.github.com/users/bruce/following{/other_user}","gists_url":"https://api.github.com/users/bruce/gists{/gist_id}","starred_url":"https://api.github.com/users/bruce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruce/subscriptions","organizations_url":"https://api.github.com/users/bruce/orgs","repos_url":"https://api.github.com/users/bruce/repos","events_url":"https://api.github.com/users/bruce/events{/privacy}","received_events_url":"https://api.github.com/users/bruce/received_events","type":"User","site_admin":false},"created_at":"2017-10-25T08:21:08Z","updated_at":"2017-10-25T08:21:08Z","author_association":"CONTRIBUTOR","body":"Scheduling addressing this as part of the \"schema definition refactor\" milestone."}}
{"actor":{"display_login":"bruce"}}