{"action":"created","issue":{"url":"https://api.github.com/repos/graphcool/graphql-playground/issues/650","repository_url":"https://api.github.com/repos/graphcool/graphql-playground","labels_url":"https://api.github.com/repos/graphcool/graphql-playground/issues/650/labels{/name}","comments_url":"https://api.github.com/repos/graphcool/graphql-playground/issues/650/comments","events_url":"https://api.github.com/repos/graphcool/graphql-playground/issues/650/events","html_url":"https://github.com/graphcool/graphql-playground/issues/650","id":315512523,"number":650,"title":"Use local schema","user":{"login":"acoreyj","id":11298888,"avatar_url":"https://avatars3.githubusercontent.com/u/11298888?v=4","gravatar_id":"","url":"https://api.github.com/users/acoreyj","html_url":"https://github.com/acoreyj","followers_url":"https://api.github.com/users/acoreyj/followers","following_url":"https://api.github.com/users/acoreyj/following{/other_user}","gists_url":"https://api.github.com/users/acoreyj/gists{/gist_id}","starred_url":"https://api.github.com/users/acoreyj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acoreyj/subscriptions","organizations_url":"https://api.github.com/users/acoreyj/orgs","repos_url":"https://api.github.com/users/acoreyj/repos","events_url":"https://api.github.com/users/acoreyj/events{/privacy}","received_events_url":"https://api.github.com/users/acoreyj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-18T14:46:27Z","updated_at":"2018-05-11T06:34:07Z","closed_at":null,"author_association":"NONE","body":"#### This issue pertains to the following package(s):\r\n\r\n- [ ] GraphQL Playground - Electron App\r\n- [ x ] GraphQL Playground HTML\r\n- [ x ] GraphQL Playground\r\n- [ ] GraphQL Playground Express Middleware\r\n- [ ] GraphQL Playground Hapi Middleware\r\n- [ ] GraphQL Playground Koa Middleware\r\n- [ ] GraphQL Playground Lambda Middleware\r\n\r\nCan you use a local schema instead of an endpoint or do you need a server? For instance using https://www.npmjs.com/package/apollo-link-schema instead of a server endpoint?"},"comment":{"url":"https://api.github.com/repos/graphcool/graphql-playground/issues/comments/388274215","html_url":"https://github.com/graphcool/graphql-playground/issues/650#issuecomment-388274215","issue_url":"https://api.github.com/repos/graphcool/graphql-playground/issues/650","id":388274215,"user":{"login":"FredyC","id":1096340,"avatar_url":"https://avatars0.githubusercontent.com/u/1096340?v=4","gravatar_id":"","url":"https://api.github.com/users/FredyC","html_url":"https://github.com/FredyC","followers_url":"https://api.github.com/users/FredyC/followers","following_url":"https://api.github.com/users/FredyC/following{/other_user}","gists_url":"https://api.github.com/users/FredyC/gists{/gist_id}","starred_url":"https://api.github.com/users/FredyC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FredyC/subscriptions","organizations_url":"https://api.github.com/users/FredyC/orgs","repos_url":"https://api.github.com/users/FredyC/repos","events_url":"https://api.github.com/users/FredyC/events{/privacy}","received_events_url":"https://api.github.com/users/FredyC/received_events","type":"User","site_admin":false},"created_at":"2018-05-11T06:34:07Z","updated_at":"2018-05-11T06:34:07Z","author_association":"NONE","body":"I see. Using `apollo-link-schema` along with `addMockFunctionsToSchema` might indeed solve that. Why don't you give it a go and make a PR? :) \r\n\r\nPersonally, I would not be using that. Creating simple mock server is super easy and added benefit is I am able to customize the mocks so it does not return \"Hello\" string everywhere :)"}}
{"actor":{"display_login":"FredyC"}}