Reduce bandwidth demands on your APIs by getting only the results you need--all in a single request! The GraphQL query language simplifies interactions with web servers, enabling smarter API queries that can hugely improve the efficiency of data requests. In GraphQL in Action, you'll learn how to bring those benefits to your own APIs, giving your clients the power to ask for exactly what they need from your server, no more, no less.
Practical and example-driven, GraphQL in Action teaches everything you need to get started with GraphQL--from design principles and syntax right through to performance optimization. When you're done, you'll have all the skills you need to get started writing and using scalable data APIs with GraphQL.
Key Features
- Define a GraphQL schema for relational and document databases
- Query services and other APIs efficiently
- Optimize GraphQL resolvers with data caching and batching
- Cache a data graph for clients
- Design GraphQL fragments that match UI components' data Requirements
For web developers familiar with building client-server applications.
About the technology
By organizing data as types and fields, GraphQL gives apps complete control over what they're requesting, resulting in faster transfer roundtrips, errors that are easier to spot, and virtually no need for clients to write time-consuming manual parsing code.
Samer Buna has over 20 years of experience in software development including front-ends, back-ends, mobile apps, API design, databases, and scalability. He operates jsComplete.com.