In part 2 of the book, we built a data API and implemented various GraphQL types to support many query and mutation operations. In part 3, we’ll explore how to use these operations in a frontend application. We’ll do that with and without a dedicated GraphQL client library.
In chapter 9, we’ll explore how to use a GraphQL API with direct Ajax requests. You’ll learn about UI components and their data requirements, you’ll see examples of using tokens in GraphQL requests to implement authentication and authorization, and you’ll learn about the value of GraphQL fragments when coupled with UI components.
Chapter 10 is a long but fun ride to explore the power of the most popular GraphQL client library: Apollo Client. You’ll learn how to use it both in plain JavaScript and in React. You’ll learn about its core concepts, like links, cache, hook functions, and local app state, as well as how to implement and use GraphQL subscriptions.