Jump to ratings and reviews
Rate this book

GraphQL in Action

Rate this book
GraphQL in Action gives you the tools to get comfortable with the GraphQL language, build and optimize a data API service, and use it in a front-end client application.Summary 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, this book teaches everything you need to get started with GraphQL—from design principles and syntax right through to performance optimization. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the technology GraphQL APIs are fast, efficient, and easy to maintain. They reduce app latency and server cost while boosting developer productivity. This powerful query layer offers precise control over API requests and returns, making apps faster and less prone to error. About the book GraphQL in Action gives you the tools to get comfortable with the GraphQL language, build and optimize a data API service, and use it in a front-end client application. By working through set up, security, and error handling you'll learn to create a complete GraphQL server. You'll also unlock easy ways to incorporate GraphQL into your existing codebase so you can build simple, scalable data APIs. What's inside     Define a GraphQL schema for relational and document databases     Implement GraphQL types using both the schema language and object constructor methods     Optimize GraphQL resolvers with data caching and batching     Design GraphQL fragments that match UI components' data requirements     Consume GraphQL API queries, mutations, and subscriptions with and without a GraphQL client library About the reader For web developers familiar with client-server applications. About the author Samer Buna has over 20 years of experience in software development including front-ends, back-ends, API design, and scalability. Table of Contents PART 1- EXPLORING GRAPHQL 1 Introduction to GraphQL 2 Exploring GraphQL APIs 3 Customizing and organizing GraphQL operations PART 2 - BUILDING GRAPHQL APIs 4 Designing a GraphQL schema 5 Implementing schema resolvers 6 Working with database models and relations 7 Optimizing data fetching 8 Implementing mutations PART 3 - USING GRAPHQL APIs 9 Using GraphQL APIs without a client library 10 Using GraphQL APIs with Apollo client

663 pages, Kindle Edition

Published February 21, 2021

20 people are currently reading
51 people want to read

About the author

Samer Buna

13 books2 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
5 (11%)
4 stars
22 (50%)
3 stars
13 (29%)
2 stars
3 (6%)
1 star
1 (2%)
Displaying 1 - 8 of 8 reviews
1 review
May 31, 2021
The book reads like an overly long blog post/tutorial, the style is pretty similar to many Packt books. There is a strong feeling that there was a min threshold of pages the author had to hit. There are 350 pages mostly because there is a sheer amount of duplication, unnecessary screenshots (with the author's company logo everywhere), unrelated long code snippets, and basic tutorials on general software engineering topics. At the same time, the only language/library/client used demonstrated is JS/GraphQL.js/Apollo. So even things like custom scalars or Relay are missing.

The overview of the book mentions such topics as design principles, performance, and scalability. But the book has none of that, It doesn't even mention the "10 GraphQL Principles", has nothing about the Federation, and nothing about the ecosystem that allows you to scale GraphQL within an organization.

Overall the goal of the book seems to be to build a small starter project, which just happens to use basic GraphQL, instead of covering GraphQL. Along the road. Along the way, the author shares his understanding of / opinions on polyfills/React/Vue, git, different databases, SQL syntax, JS bundlers, Express (with a link to his $18 course).

Doesn't worth the money/time spent on it
Profile Image for Yifan Yang.
45 reviews7 followers
March 20, 2025
Overall, this is a beginner-friendly book on GraphQL. It starts with the basics of GraphQL query syntax, then moves on to explaining schemas. The book uses the express-graphql library as the backend implementation to demonstrate how to write resolvers. In the later chapters, it covers how to send client requests using both basic "fetch" and the Apollo client. Aside from the fundamental concepts, it also addresses the "N + 1 queries problem", which is a nice addition.

The book essentially covers everything needed for getting started with GraphQL and gaining a general understanding of its concepts. The "in action" sections are explained in great detail, which might feel a bit slow-paced and repetitive to experienced developers, but it is quite suitable for beginners who need a thorough introduction.

In my opinion, this book is a great choice for absolute beginners who have no prior concept of GraphQL. However, for those who already have some experience with GraphQL or have done a basic "Get Started Implementation", it might not be very beneficial. Instead, diving into the Apollo documentation might offer more practical insights and be a better use of time.
Profile Image for Jeanne Boyarsky.
Author 28 books76 followers
September 18, 2022
The first thing I learned in “GraphQL in Action” is that GraphQL was released in 2015. I assumed it was older. While I've used GraphQL, I never learned it methodically.

The book assumes you know JavaScript and proceeds from there. Chapter 1 includes useful vocabulary like resolver functions. It also covers the benefits and problems. Also known as considerations.

I like that chapter 2 introduces GraphiQL and suggests downloading it. Definitely helps with learning. I also like that there were exercises to get comfortable with the tool. The book then proceeds with simple queries and more advanced one. For example, I learned how to sort the result set. The book also covers mutation and aliases. By the end of the book, the examples are quite advanced.

---

Disclosure: I received a free copy of this book from the publisher in exchange for writing this review.
Profile Image for Valentino Gagliardi.
29 reviews4 followers
February 9, 2021
Samer knows his stuff. GraphQL in Action is not only a complete introduction to GraphQL, but first and foremost a book full of tips and best practices for running GraphQL efficiently. In this book you will find everything you need to get started with GraphQL, from backend implementation to JS clients. Highly suggested reading for anyone wanting to dig deeper into what GraphQL has to offer.
Profile Image for Jeff Patterson.
109 reviews6 followers
November 23, 2022
For me, greater than half of the book was extremely useful and I learned a lot. The rest of the book focused on JavaScript, which I don't do (and yeah, I get it.) Then it moved to ApolloGraphQL again I get it, but I didn't notice that when I bought the book. Still worth the read, and again, I learned a lot of GraphQL that I didn't know when I started.
Profile Image for Avraam Mavridis.
133 reviews23 followers
May 2, 2021
I would love to see some parts related to Schema Federation, apart from that missing part, its a great book.
Profile Image for Viktor Lototskyi.
149 reviews5 followers
March 30, 2022
A decent book if you're in Web for some time, heard about GraphQL, but didn't use it that much.

Good balance of theory, practice and complexity.
Profile Image for Debashish Mishra.
45 reviews
July 24, 2022
very good introductory book on GraphQL. I would like the future edition to cover examples in backend languages like Python, Go etc.
Displaying 1 - 8 of 8 reviews

Can't find what you're looking for?

Get help and learn more about the design.