GraphQL solves a specific problem you run into with conventional RESTful APIs: fetching too much or too little data per request. Who hasn't integrated with an API where the endpoint returned a ton of useless information that just made the request heavier for no reason? Or worse, the request didn't return a piece of data that turned out to be crucial for rendering the screen?! This demo will integrate with two identical APIs using different communication protocols. It will show, in practice, the difference between a GraphQL API and a RESTful API — the paradigm in action: queries with variables, fragments reused across screens, cursor-based pagination, and Apollo's normalized cache storing each entity once, not once per request.
The interactive demo for this feature will be available soon.
The interactive demo for GraphQL is currently under development. The architecture and technical details are documented above.