[openstreetmap/openstreetmap-website] Plans for GraphQL support? (#2047)
notifications at github.com
Mon Nov 12 22:01:44 UTC 2018
> What would be the benefit?
@HolgerJeromin it would be all the benefits of using GraphQL, which you'd be better off reading an [article](https://medium.com/open-graphql/graphql-1-140fab436942) about it. But in short, you can `query`/`mutate`/`subscribe` the data you want with a single endpoint (e.g. `example.com/graphql`) , guaranteed the response types, don't need to read the REST API docs to understand what responses the server provides, and optimize network bandwidth. And in a conventional REST API, if someone decides to change the response to a certain endpoint, you (the API consumer) need to care. But with GraphQL you don't.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rails-dev