Skip to content

How to download schema in SDL format? #1408

@essaji

Description

@essaji

Hey guys!

We are using graphQL schema in SDL format at our client side. I tried to download schema from the registry using apollo client:download-schema output.graphql but it looks like its downloading it in JSON format. I know we can convert it using printSchema function from graphql library but I was wondering is there already a way or flag which I can use to directly download it in SDL format?

If not, I will be happy to create a PR to add this feature, may be add another flag i.e. --sdl to download it in SDL format.

Thanks in anticipation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions