{"action":"closed","issue":{"url":"https://api.github.com/repos/apollographql/apollo-cli/issues/555","repository_url":"https://api.github.com/repos/apollographql/apollo-cli","labels_url":"https://api.github.com/repos/apollographql/apollo-cli/issues/555/labels{/name}","comments_url":"https://api.github.com/repos/apollographql/apollo-cli/issues/555/comments","events_url":"https://api.github.com/repos/apollographql/apollo-cli/issues/555/events","html_url":"https://github.com/apollographql/apollo-cli/issues/555","id":351606624,"node_id":"MDU6SXNzdWUzNTE2MDY2MjQ=","number":555,"title":"schema:download generates incompatible schema JSON","user":{"login":"michaelbromley","id":6275952,"node_id":"MDQ6VXNlcjYyNzU5NTI=","avatar_url":"https://avatars0.githubusercontent.com/u/6275952?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelbromley","html_url":"https://github.com/michaelbromley","followers_url":"https://api.github.com/users/michaelbromley/followers","following_url":"https://api.github.com/users/michaelbromley/following{/other_user}","gists_url":"https://api.github.com/users/michaelbromley/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelbromley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelbromley/subscriptions","organizations_url":"https://api.github.com/users/michaelbromley/orgs","repos_url":"https://api.github.com/users/michaelbromley/repos","events_url":"https://api.github.com/users/michaelbromley/events{/privacy}","received_events_url":"https://api.github.com/users/michaelbromley/received_events","type":"User","site_admin":false},"labels":[{"id":854172035,"node_id":"MDU6TGFiZWw4NTQxNzIwMzU=","url":"https://api.github.com/repos/apollographql/apollo-cli/labels/has-reproduction","name":"has-reproduction","color":"42f44e","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-08-17T14:00:59Z","updated_at":"2018-08-29T12:46:27Z","closed_at":"2018-08-29T12:46:27Z","author_association":"NONE","body":"- [x] has-reproduction\r\n\r\n## Version\r\napollo v1.7.0\r\n\r\n## Description\r\nRunning `apollo schema:download` generates JSON which omits the \"__schema\" root property. This seems to break with convention (e.g. [intellij GraphQL plugin](https://github.com/jimkyndemeyer/js-graphql-intellij-plugin/issues/28), [graphql-js introspection tests](https://github.com/graphql/graphql-js/blob/36dc1492dc8a6917e5327ef5d98e6662e6e15825/src/__tests__/starWarsIntrospection-test.js), [relay-starter-kit](https://github.com/relayjs/relay-starter-kit/blob/d182c5d2301cc3596e2da8a2d20ea6dce50f5eef/data/schema.json), [spectrum](https://github.com/withspectrum/spectrum/blob/54d0a1d4c57f860269bd51f7539933492184cd61/shared/graphql/schema.json)).\r\n\r\nI am using the intellij GraphQL plugin and it is unfortunately unable to read the output from apollo at the moment.\r\n\r\n## Steps to reproduce\r\n\r\n1. `npm install apollo` \r\n2. `npx apollo schema:download schema.json --endpoint=https://graphql-pokemon.now.sh`\r\n\r\n## Expected\r\n\r\nThe schema.json file should have the root property \"__schema\"\r\n\r\n## Actual\r\n\r\nThe\"__schema\" property is missing and instead it seems to have been unwrapped so that the root properties are \"queryType\", \"mutationType\", etc.\r\n"}}
{"actor":{"display_login":"martijnwalraven"}}