{"action":"closed","issue":{"url":"https://api.github.com/repos/apollographql/apollo-client/issues/3249","repository_url":"https://api.github.com/repos/apollographql/apollo-client","labels_url":"https://api.github.com/repos/apollographql/apollo-client/issues/3249/labels{/name}","comments_url":"https://api.github.com/repos/apollographql/apollo-client/issues/3249/comments","events_url":"https://api.github.com/repos/apollographql/apollo-client/issues/3249/events","html_url":"https://github.com/apollographql/apollo-client/issues/3249","id":310352310,"node_id":"MDU6SXNzdWUzMTAzNTIzMTA=","number":3249,"title":"Could not find __typename__ on Fragment","user":{"login":"MJones180","id":20233446,"node_id":"MDQ6VXNlcjIwMjMzNDQ2","avatar_url":"https://avatars1.githubusercontent.com/u/20233446?v=4","gravatar_id":"","url":"https://api.github.com/users/MJones180","html_url":"https://github.com/MJones180","followers_url":"https://api.github.com/users/MJones180/followers","following_url":"https://api.github.com/users/MJones180/following{/other_user}","gists_url":"https://api.github.com/users/MJones180/gists{/gist_id}","starred_url":"https://api.github.com/users/MJones180/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MJones180/subscriptions","organizations_url":"https://api.github.com/users/MJones180/orgs","repos_url":"https://api.github.com/users/MJones180/repos","events_url":"https://api.github.com/users/MJones180/events{/privacy}","received_events_url":"https://api.github.com/users/MJones180/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-01T20:39:31Z","updated_at":"2018-08-10T19:49:48Z","closed_at":"2018-08-10T19:49:47Z","author_association":"NONE","body":"Throughout my code I use fragments to break up the data requirements. However, in the header I have a simple query:\r\n\r\n```\r\nquery: gql`\r\n  query HeaderUser {\r\n    me {\r\n      nameFirst\r\n      nameLast\r\n    }\r\n  }\r\n`\r\n```\r\nSometimes this Query returns null (`{ me: null }`) and Apollo Client raises a really annoying error each time: `You're using fragments in your queries, but either don't have the addTypename: true option set in Apollo Client, or you are trying to write a fragment to the store without the __typename. Please turn on the addTypename option and include __typename when writing fragments so that Apollo Client can accurately match fragments.` and `Could not find __typename on Fragment  Query {me: null}`. This is really weird because I am not even using fragments in this case. Is there a way to remove this error?\r\n\r\n**Version**\r\n- apollo-client@2.2.8\r\n\r\n**EDIT**\r\nI would also like to add that the error comes up on some responses that even do contain the `__fragment` field.\r\n"}}
{"actor":{"display_login":"hwillson"}}