magda-io / magda

A federated, open-source data catalog for all your big data and small data
https://magda.io
Apache License 2.0
512 stars 93 forks source link

GraphQL API #133

Open AlexGilleran opened 7 years ago

AlexGilleran commented 7 years ago

~Seriously? 😬~

Apparently this is actually a good idea.

tephenavies commented 7 years ago

I had a stab at this today: image It's built on top of the standard REST API, and turns one GraphQL request into >300 API calls, so there's room for improvement there 😄. I think it's not a bad idea to use the REST API at least at first because it will be fairly easy to replace that with SQL calls if we want to set it up beside the REST API later.

There's no dynamic json-schema -> GraphQL schema generation yet (I just coded in dataset-distributions and source-link-status to test the idea), but I'll set that up soon.