design-first / system-designer

A low-code development platform for creating systems 🇺🇦#standwithUkraine
https://designfirst.io/systemdesigner/
Apache License 2.0
930 stars 136 forks source link

Add schema import for GraphQL SDL #142

Open saerdnaer opened 3 years ago

saerdnaer commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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