Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add schema import for GraphQL SDL #142

Open
saerdnaer opened this issue May 9, 2021 · 2 comments
Open

Add schema import for GraphQL SDL #142

saerdnaer opened this issue May 9, 2021 · 2 comments

Comments

@saerdnaer
Copy link

Is your feature request related to a problem? Please describe.
As a user of System Designer I’d like to import an existing GraphQL SDL file so I do not have to re-enter all my types / model.

Describe the solution you'd like

In my case model of some existing systems already described in an GraphQL SDL file, c.f.: https://graphql.org/learn/schema/ – If you provide a JSON file of the Starwars examples used in the docs, I can provide the model as SDL.

Describe alternatives you've considered
Of course one could also write a external converter transforming SDL to MSON, but I think in integrated importer would be more useful.

Additional context
TBD

@ecarriou
Copy link
Member

ecarriou commented May 9, 2021

Thank you for your interesting suggestion!

I have to have a look at the import of GraphQL SDL. I think it will be not difficult to do it, I just need to find some time. I have created an extension for creating a model from a JSON file, I will expose this feature as an extension too.

For information, you can find the Quickstart example system in System Designer and then you can export it as JSON:

Capture d’écran 2021-05-09 à 22 52 18

@ecarriou
Copy link
Member

For information, I am starting to create an extension for this purpose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants