project-open-data / project-open-data.github.io

Open Data Policy — Managing Information as an Asset
https://project-open-data.cio.gov/
Other
1.33k stars 585 forks source link

GraphQL #593

Open loganpowell opened 7 years ago

loganpowell commented 7 years ago

What are your thoughts on leveraging GraphQL for making better open APIs?

http://graphql.org/

We're starting research down this path and would be happy to hear from potential contributors:

https://github.com/OpenGraphQL/opengraphql-organization/issues/1

JJediny commented 7 years ago

Looks promising as an action API, happen to know whether it could perform data transformation on the fly or at rest using a key:value mapping to an in-memory schema against another schema xml/json/yaml as a client-side Javascript transform it would be interesting. Thanks for the question

PS :1st_place_medal: to the GraphQL team for coming up with an awesome example: https://github.com/graphql/graphql-js/blob/master/src/__tests__/starWarsSchema.js

loganpowell commented 7 years ago

That SWAPI example is getting so much play right now 😆

"whether is could perform data transformation on the fly": It's not exactly a logic layer, but could very well be an API into one or compose many (e.g., microservice stuff). In fact there are existing bindings for many different databases/ORMs. It can do everything REST can do, but has some relevant advantages for data interoperability challenges such as those faced when using open data.

rebeccawilliams commented 6 years ago

Should this be added as a tool or resource?