system-designer icon indicating copy to clipboard operation
system-designer copied to clipboard

Add schema import for GraphQL SDL

Open saerdnaer opened this issue 4 years ago • 2 comments

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

saerdnaer avatar May 09 '21 10:05 saerdnaer

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 avatar May 09 '21 21:05 ecarriou

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

ecarriou avatar May 15 '21 16:05 ecarriou