Skip to content

schema:download generates incompatible schema JSON #555

@michaelbromley

Description

@michaelbromley
  • has-reproduction

Version

apollo v1.7.0

Description

Running apollo schema:download generates JSON which omits the "__schema" root property. This seems to break with convention (e.g. intellij GraphQL plugin, graphql-js introspection tests, relay-starter-kit, spectrum).

I am using the intellij GraphQL plugin and it is unfortunately unable to read the output from apollo at the moment.

Steps to reproduce

  1. npm install apollo
  2. npx apollo schema:download schema.json --endpoint=https://graphql-pokemon.now.sh

Expected

The schema.json file should have the root property "__schema"

Actual

The"__schema" property is missing and instead it seems to have been unwrapped so that the root properties are "queryType", "mutationType", etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🌹 has-reproduction❤ Has a reproduction in a codesandbox or single minimal repository

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions