{"action":"created","issue":{"url":"https://api.github.com/repos/apollographql/react-apollo/issues/385","repository_url":"https://api.github.com/repos/apollographql/react-apollo","labels_url":"https://api.github.com/repos/apollographql/react-apollo/issues/385/labels{/name}","comments_url":"https://api.github.com/repos/apollographql/react-apollo/issues/385/comments","events_url":"https://api.github.com/repos/apollographql/react-apollo/issues/385/events","html_url":"https://github.com/apollographql/react-apollo/issues/385","id":197281534,"number":385,"title":"Error in QueryManager when id is not queried for nested item.","user":{"login":"richburdon","id":3523355,"avatar_url":"https://avatars2.githubusercontent.com/u/3523355?v=3","gravatar_id":"","url":"https://api.github.com/users/richburdon","html_url":"https://github.com/richburdon","followers_url":"https://api.github.com/users/richburdon/followers","following_url":"https://api.github.com/users/richburdon/following{/other_user}","gists_url":"https://api.github.com/users/richburdon/gists{/gist_id}","starred_url":"https://api.github.com/users/richburdon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richburdon/subscriptions","organizations_url":"https://api.github.com/users/richburdon/orgs","repos_url":"https://api.github.com/users/richburdon/repos","events_url":"https://api.github.com/users/richburdon/events{/privacy}","received_events_url":"https://api.github.com/users/richburdon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-22T22:40:42Z","updated_at":"2017-04-27T03:37:01Z","closed_at":"2017-04-27T03:37:01Z","body":"When querying for a nested item, if the \"id\" field is not requested the errors below are observed.\r\n\r\nconst TaskFragment = gql`\r\n  fragment TaskFragment on Task {\r\n    bucket \r\n    project {\r\n      id                  // ERROR if omitted\r\n      title\r\n    }\r\n  }\r\n`;\r\n\r\n[main] Error: Network error: Store error: the application attempted to write an object with no provided id but the store already contains an id of Project/demo for this object.\r\n\r\nQueryManager.js?2cbe:150 Error in observer.error \r\nError\r\n    at new ApolloError (eval at <anonymous> (http://localhost:3000/assets/hot.bundle.js:4420:2), <anonymous>:31:23)\r\n    at eval (eval at <anonymous> (http://localhost:3000/assets/hot.bundle.js:4426:2), <anonymous>:141:39)\r\n    at eval (eval at <anonymous> (http://localhost:3000/assets/hot.bundle.js:4426:2), <anonymous>:629:25)\r\n    at Array.forEach (native)\r\n    at eval (eval at <anonymous> (http://localhost:3000/assets/hot.bundle.js:4426:2), <anonymous>:626:27)\r\n    at eval (eval at <anonymous> (http://localhost:3000/assets/hot.bundle.js:3502:2), <anonymous>:17:11)\r\n    at baseForOwn (eval at <anonymous> (http://localhost:3000/assets/hot.bundle.js:3490:2), <anonymous>:13:20)\r\n    at forOwn (eval at <anonymous> (http://localhost:3000/assets/hot.bundle.js:4438:2), <anonymous>:33:20)\r\n    at QueryManager.broadcastQueries (eval at <anonymous> (http://localhost:3000/assets/hot.bundle.js:4426:2), <anonymous>:624:9)\r\n    at QueryManager.broadcastNewStore (eval at <anonymous> (http://localhost:3000/assets/hot.bundle.js:4426:2), <anonymous>:63:14)"},"comment":{"url":"https://api.github.com/repos/apollographql/react-apollo/issues/comments/297602571","html_url":"https://github.com/apollographql/react-apollo/issues/385#issuecomment-297602571","issue_url":"https://api.github.com/repos/apollographql/react-apollo/issues/385","id":297602571,"user":{"login":"cesarsolorzano","id":2936041,"avatar_url":"https://avatars3.githubusercontent.com/u/2936041?v=3","gravatar_id":"","url":"https://api.github.com/users/cesarsolorzano","html_url":"https://github.com/cesarsolorzano","followers_url":"https://api.github.com/users/cesarsolorzano/followers","following_url":"https://api.github.com/users/cesarsolorzano/following{/other_user}","gists_url":"https://api.github.com/users/cesarsolorzano/gists{/gist_id}","starred_url":"https://api.github.com/users/cesarsolorzano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cesarsolorzano/subscriptions","organizations_url":"https://api.github.com/users/cesarsolorzano/orgs","repos_url":"https://api.github.com/users/cesarsolorzano/repos","events_url":"https://api.github.com/users/cesarsolorzano/events{/privacy}","received_events_url":"https://api.github.com/users/cesarsolorzano/received_events","type":"User","site_admin":false},"created_at":"2017-04-27T03:37:01Z","updated_at":"2017-04-27T03:37:01Z","body":"Closing up old issues"}}
{"actor":{"display_login":"cesarsolorzano"}}