question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to download schema in SDL format?

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:11
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
SergeNarhicommented, Nov 14, 2019

Looks like isn’t released yet. Снимок экрана 2019-11-14 в 16 31 06

2reactions
essajicommented, Oct 23, 2019

Closing this thread as the feature has been added & expected to be released soon 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Downloading a schema - Apollo GraphQL Docs
It supports downloading a schema and generating code. You can use the Apollo CLI to download a GraphQL schema by sending an introspection...
Read more >
Get GraphQL Schema as a file (SDL schema file)
The GraphQL query language has its own schema definition based on a format called "SDL". This SDL format file can be downloaded via...
Read more >
Download GraphQL Schema From a GraphQL Server - YouTube
Download schema apollo schema : download --endpoint={GraphQL endpoint} 2. ... graphql-introspection-json-to- sdl schema.json schema.graphql ...
Read more >
How-to get SDL schema file for HOPEX graphQL REST API
In this how-to video you will learn how to get the the SDL file to use in postman or other tool that can...
Read more >
Exporting the Hasura GraphQL schema
Export the GraphQL schema in Hasura. ... By default, it downloads the schema in .graphql format. If you want it in JSON format,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found