payload: {"action":"opened","issue":{"url":"https://api.github.com/repos/apollographql/apollo-client/issues/4408","repository_url":"https://api.github.com/repos/apollographql/apollo-client","labels_url":"https://api.github.com/repos/apollographql/apollo-client/issues/4408/labels{/name}","comments_url":"https://api.github.com/repos/apollographql/apollo-client/issues/4408/comments","events_url":"https://api.github.com/repos/apollographql/apollo-client/issues/4408/events","html_url":"https://github.com/apollographql/apollo-client/issues/4408","id":406385479,"node_id":"MDU6SXNzdWU0MDYzODU0Nzk=","number":4408,"title":"self.fetch.bind(self) not defined in the browserified js file","user":{"login":"strotech","id":37307710,"node_id":"MDQ6VXNlcjM3MzA3NzEw","avatar_url":"https://avatars2.githubusercontent.com/u/37307710?v=4","gravatar_id":"","url":"https://api.github.com/users/strotech","html_url":"https://github.com/strotech","followers_url":"https://api.github.com/users/strotech/followers","following_url":"https://api.github.com/users/strotech/following{/other_user}","gists_url":"https://api.github.com/users/strotech/gists{/gist_id}","starred_url":"https://api.github.com/users/strotech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strotech/subscriptions","organizations_url":"https://api.github.com/users/strotech/orgs","repos_url":"https://api.github.com/users/strotech/repos","events_url":"https://api.github.com/users/strotech/events{/privacy}","received_events_url":"https://api.github.com/users/strotech/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-02-04T15:35:48Z","updated_at":"2019-02-04T15:35:48Z","closed_at":null,"author_association":"NONE","body":"I created a node.js file called fetch.js having graphQL call using apollo-fetch. When i run it without browserifying, like, node fetch.js , i get the intended outcome as \r\n\r\n> returned from custom test function\r\n\r\n After i browserified it and created bundle.js and when i try to run the browserified file , i am getting the error\r\n\r\n> fetch not defined\r\n\r\nThen i included es6-promise and isomorphic-fetch, after looking at the related bugs, and now i am getting the error\r\n\r\n> self.fetch.bind(self) not defined\r\n\r\nPlease find below my  fetch.js, schema and resolver files\r\n\r\n`\r\nrequire('es6-promise').polyfill();\r\nvar fetch=require('isomorphic-fetch').fetch;\r\n\r\nconst { createApolloFetch } = require('apollo-fetch');\r\nconst fetchQL = createApolloFetch({\r\nuri: 'http://localhost:4000/graphql',\r\n});\r\n\r\nfetchQL({\r\nquery: '{testFunction}',\r\n}).then(res => {\r\nconsole.log(res.data.testFunction);\r\n});\r\n`\r\n\r\nwith schema as\r\ntype myQuery { testFunction: String! }\r\n\r\nand resolver as\r\nmyQuery:{ testFunction(){ return \"returned from custom test function\"; }"}}
other: {"actor":{"display_login":"strotech"}}