{"action":"closed","issue":{"url":"https://api.github.com/repos/cult-of-coders/apollo/issues/58","repository_url":"https://api.github.com/repos/cult-of-coders/apollo","labels_url":"https://api.github.com/repos/cult-of-coders/apollo/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/cult-of-coders/apollo/issues/58/comments","events_url":"https://api.github.com/repos/cult-of-coders/apollo/issues/58/events","html_url":"https://github.com/cult-of-coders/apollo/issues/58","id":384257662,"node_id":"MDU6SXNzdWUzODQyNTc2NjI=","number":58,"title":"Ability to apply configs to ApolloClient constructor","user":{"login":"jaxtisapia","id":32112641,"node_id":"MDQ6VXNlcjMyMTEyNjQx","avatar_url":"https://avatars1.githubusercontent.com/u/32112641?v=4","gravatar_id":"","url":"https://api.github.com/users/jaxtisapia","html_url":"https://github.com/jaxtisapia","followers_url":"https://api.github.com/users/jaxtisapia/followers","following_url":"https://api.github.com/users/jaxtisapia/following{/other_user}","gists_url":"https://api.github.com/users/jaxtisapia/gists{/gist_id}","starred_url":"https://api.github.com/users/jaxtisapia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaxtisapia/subscriptions","organizations_url":"https://api.github.com/users/jaxtisapia/orgs","repos_url":"https://api.github.com/users/jaxtisapia/repos","events_url":"https://api.github.com/users/jaxtisapia/events{/privacy}","received_events_url":"https://api.github.com/users/jaxtisapia/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-26T10:09:44Z","updated_at":"2019-01-04T10:18:01Z","closed_at":"2019-01-04T10:18:01Z","author_association":"NONE","body":"On calling `intialise` to retrieve client object,\r\ncreation of the original  ApolloClient is limited.\r\n\r\nFor instance, applying a config like `  addTypename: false` becomes impossible;\r\n\r\nBelow is the exact code-snippet that intialises and returns the client object\r\n\r\n```\r\n  const client = new ApolloClient({\r\n    link: terminatingLink,\r\n    cache: new InMemoryCache({\r\n      dataIdFromObject: object => object._id || null,\r\n    }).restore(window.__APOLLO_STATE__ || {}),\r\n  });\r\n\r\n  return {\r\n    client,\r\n  };\r\n```"}}
{"actor":{"display_login":"theodorDiaconu"}}