GraphQL in Action, Video Edition

Video description

In Video Editions the narrator reads the book while the content, figures, code listings, diagrams, and text appear on the screen. Like an audiobook that you can also watch as a video.

With thorough explorations of GraphQL concepts and numerous practical examples, this excellent book will quickly take you from novice to expert.
Dary Merckens, Gunner Technology

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.

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 audience

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.

A great introduction to GraphQL. This was the first book where I finally ‘got it’.
Jeremy Lange, G2

Learn the new API paradigm with this excellent practical guide.
Isaac Wong, Privé Technologies

If you want to develop an API with best practices, GraphQL is for you, and this book can help you get started quickly.
Ethien Daniel Salinas Domínguez, Intelligential.tech

NARRATED BY CHRISTOPHER KENDRICK

Table of contents

  1. Part 1. Exploring GraphQL
  2. Chapter 1 Introduction to GraphQL
  3. Chapter 1 The big picture
  4. Chapter 1 GraphQL is a specification
  5. Chapter 1 GraphQL is a service
  6. Chapter 1 Why GraphQL?
  7. Chapter 1 What about REST APIs?
  8. Chapter 1 REST APIs and GraphQL APIs in action
  9. Chapter 1 GraphQL problems
  10. Chapter 2 Exploring GraphQL APIs
  11. Chapter 2 The basics of the GraphQL language
  12. Chapter 2 Examples from the GitHub API
  13. Chapter 3 Customizing and organizing GraphQL operations
  14. Chapter 3 Ordering records returned by a list field
  15. Chapter 3 Renaming fields with aliases
  16. Chapter 3 Variables and input values
  17. Chapter 3 GraphQL fragments
  18. Chapter 3 Fragments and UI components
  19. Chapter 3 Inline fragments for interfaces and unions
  20. Part 2. Building GraphQL APIs
  21. Chapter 4 Designing a GraphQL schema
  22. Chapter 4 The core types
  23. Chapter 4 Queries
  24. Chapter 4 Using an interface type
  25. Chapter 4 List of scalar values
  26. Chapter 4 Mutations
  27. Chapter 4 Creating a Task object
  28. Chapter 4 Designing database models
  29. Chapter 4 The Task/Approach models
  30. Chapter 5 Implementing schema resolvers
  31. Chapter 5 Setting up the GraphQL runtime
  32. Chapter 5 Creating resolver functions
  33. Chapter 5 Communicating over HTTP
  34. Chapter 5 Building a schema using constructor objects
  35. Chapter 5 Custom object types
  36. Chapter 5 Generating SDL text from object-based schemas
  37. Chapter 6 Working with database models and relations
  38. Chapter 6 The taskMainList query
  39. Chapter 6 Transforming field names
  40. Chapter 6 Separating interactions with PostgreSQL
  41. Chapter 6 Resolving relations
  42. Chapter 6 Resolving a one-to-one relation
  43. Chapter 7 Optimizing data fetching
  44. Chapter 7 Defining and using a DataLoader instance
  45. Chapter 7 Single resource fields
  46. Chapter 7 Using DataLoader with custom IDs for caching
  47. Chapter 7 Using DataLoader with MongoDB
  48. Chapter 8 Implementing mutations
  49. Chapter 8 The userLogin mutation
  50. Chapter 8 The me root query field
  51. Chapter 8 The approachVote mutation
  52. Part 3. Using GraphQL APIs
  53. Chapter 9 Using GraphQL APIs without a client library
  54. Chapter 9 Making Ajax requests
  55. Chapter 9 Performing GraphQL query requests
  56. Chapter 9 Performing GraphQL mutation requests
  57. Chapter 9 Authenticating GraphQL requests
  58. Chapter 9 Performing query requests scoped for a user
  59. Chapter 10 Using GraphQL APIs with Apollo client
  60. Chapter 10 Making a mutation request
  61. Chapter 10 Including authentication headers
  62. Chapter 10 Using Apollo hook functions
  63. Chapter 10 Using the automatic cache
  64. Chapter 10 Managing local app state
  65. Chapter 10 Implementing and using GraphQL subscriptions
  66. Chapter 10 Apollo Server

Product information

  • Title: GraphQL in Action, Video Edition
  • Author(s): Samer Buna
  • Release date: March 2021
  • Publisher(s): Manning Publications
  • ISBN: None