|GraphQL in Action (Manning)|
Author: Samer Buna
GraphQL has achieved impressive popularity as an open-source language for APIs that can be used for querying and manipulating data. This book provides a practical introduction to GraphQL and its use.
GraphQL was created by Facebook for internal use in delivering their mobile application data, but since being open sourced in 2015 has become increasingly widely used. Trying to understand just what it does and how to use it hasn't been that easy, and in this book Samer Buna sets out to answer those questions.
The book begins with a thorough explanation of GraphQL, beginning with a clear explanation of what it is and why you might want to use it. A chapter exploring the GraphAPIs, the GraphiQL editor, and the basics of the GraphQL language is followed by a chapter on customizing and organizing GraphQL operations.
A chapter on working with database models and relations looks in depth at resolving fields from databases and transforming their names and values. This is followed by an examination of optimizing data fetching that covers caching and batching, the data loader and working with circular dependencies. This part of the book ends with a chapter on implementing mutations, GraphQL queries that modify data.
The final part of the book covers using GraphQL APIs, beginning with an extensive chapter on using GraphQL APIs without a client library. This chapter covers making Ajax requests, query requests and mutation requests as well as performing query requests scoped for a user.
This book provides a clear, no-hype look at what GraphQL is and how to use it. The examples are clear and well explained, and the task of creating an API and using it used throughout the book works well and ought to be modifiable for real use.
|Last Updated ( Wednesday, 12 May 2021 )|