
With GraphQL, the mobile client can choose a different set of fields, so it can fetch only the information needed for what's onscreen. And there is overfetching for GraphQL a mobile client usually overfetch data when there is an identical API as the web client with a RESTful API. One of the main benefits is clients have the ability to dictate exactly what they need from the server, and receive that data in a predictable way. GraphQL is database agnostic and works by creating a single endpoint responsible for accepting queries, rather than relying on the REST API approach of having separate endpoints for each service. By Yitian Xu, Solutions Architect Solution BackgroundĪt its core, GraphQL provides a syntax that describes how to ask for data (called a Schema).
