Recognize this? You have a great data model and want to expose it to a client over HTTP. But to do that, you have to either…
– do multiple joins before you can generate a view of your data.
– expose multiple endpoints for similar views
– break RESTful conventions.
– or do multiple request for a single view.
And to add insult to injury, whenever you update your schema, you have to update endpoints as well! That’s a problem. But there’s a solution: GraphQL. With GraphQL it is possible to allow the frontend to decide what data it needs, without the backend needing to provide an endpoint for every type of view and allowing the backend to only return the data that is needed by the front end. Nothing more and nothing less. GraphQL has been adopted by several notable companies, including Facebook, Github, Yelp, Coursera and Shopify.
This talk explores GraphQL, the difference between REST and GraphQL and how to set up a GraphQL server (In Node JS, also possible in other languages). Furthermore, you will learn more about the GraphQL Schema, Queries, Mutations and Subscriptions. And there will be demos too!