{"action":"created","issue":{"url":"https://api.github.com/repos/apollostack/apollo-client/issues/998","repository_url":"https://api.github.com/repos/apollostack/apollo-client","labels_url":"https://api.github.com/repos/apollostack/apollo-client/issues/998/labels{/name}","comments_url":"https://api.github.com/repos/apollostack/apollo-client/issues/998/comments","events_url":"https://api.github.com/repos/apollostack/apollo-client/issues/998/events","html_url":"https://github.com/apollostack/apollo-client/issues/998","id":193657541,"number":998,"title":"Client will not work at all with Star Wars GraphQL API","user":{"login":"dlai286","id":17719485,"avatar_url":"https://avatars.githubusercontent.com/u/17719485?v=3","gravatar_id":"","url":"https://api.github.com/users/dlai286","html_url":"https://github.com/dlai286","followers_url":"https://api.github.com/users/dlai286/followers","following_url":"https://api.github.com/users/dlai286/following{/other_user}","gists_url":"https://api.github.com/users/dlai286/gists{/gist_id}","starred_url":"https://api.github.com/users/dlai286/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlai286/subscriptions","organizations_url":"https://api.github.com/users/dlai286/orgs","repos_url":"https://api.github.com/users/dlai286/repos","events_url":"https://api.github.com/users/dlai286/events{/privacy}","received_events_url":"https://api.github.com/users/dlai286/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-06T01:19:39Z","updated_at":"2016-12-06T08:01:06Z","closed_at":null,"body":"The following will result in errors stated here: https://github.com/Akryum/frontpage-vue-app/issues/3 using latest release of the apollo client.\r\n```\r\nimport ApolloClient, { createNetworkInterface } from 'apollo-client';\r\n\r\n// Create the apollo client\r\nconst apolloClient = new ApolloClient({\r\n  networkInterface: createNetworkInterface({\r\n    uri: 'http://graphql-swapi.parseapp.com/',\r\n    transportBatching: true,\r\n    opts: {\r\n      mode: 'no-cors',\r\n    },\r\n  }),\r\n});\r\n\r\nimport gql from 'graphql-tag';\r\nconst query = gql`\r\n  {\r\n    allFilms {\r\n      films {\r\n        title\r\n      }\r\n    }\r\n  }\r\n`\r\napolloClient.query({\r\n  query,\r\n}).then(result => {\r\n  console.log(result)\r\n})\r\n```\r\nAny clues to why this is happening?\r\n\r\nI've tried creating my own GraphQL endpoint with a PHP library which also doesn't work. The only time I've gotten apollo client working with another GraphQL backend was https://github.com/apollostack/frontpage-server. Forgive me if I read wrong but is the client supposed to be backend agnostic or it doesn't work with non-JS stacks?"},"comment":{"url":"https://api.github.com/repos/apollostack/apollo-client/issues/comments/265085338","html_url":"https://github.com/apollostack/apollo-client/issues/998#issuecomment-265085338","issue_url":"https://api.github.com/repos/apollostack/apollo-client/issues/998","id":265085338,"user":{"login":"stubailo","id":448783,"avatar_url":"https://avatars.githubusercontent.com/u/448783?v=3","gravatar_id":"","url":"https://api.github.com/users/stubailo","html_url":"https://github.com/stubailo","followers_url":"https://api.github.com/users/stubailo/followers","following_url":"https://api.github.com/users/stubailo/following{/other_user}","gists_url":"https://api.github.com/users/stubailo/gists{/gist_id}","starred_url":"https://api.github.com/users/stubailo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stubailo/subscriptions","organizations_url":"https://api.github.com/users/stubailo/orgs","repos_url":"https://api.github.com/users/stubailo/repos","events_url":"https://api.github.com/users/stubailo/events{/privacy}","received_events_url":"https://api.github.com/users/stubailo/received_events","type":"User","site_admin":false},"created_at":"2016-12-06T08:01:06Z","updated_at":"2016-12-06T08:01:06Z","body":"Are you sure that you want `mode: 'no-cors',`? Perhaps that could be part of the issue?"}}
{"actor":{"display_login":"stubailo"}}