Part 2. Building GraphQL APIs

 

In part 1 of this book, you learned the fundamentals of the GraphQL “language” that API consumers can use to ask GraphQL services for data and instruct them to do mutations. It is now time to learn how to create GraphQL services that can understand that language. In this part of the book, we’ll do exactly that by building a real data API for a real web application.

In chapter 4, you’ll learn about mapping planned UI features to API operations. You’ll start the practical process of coming up with the structure of a GraphQL schema and understand it in the context of database models.

Chapter 5 will walk you through making a simple GraphQL schema executable using Node.js database drivers and the GraphQL.js implementation. You’ll learn about resolver functions and GraphQL built-in types.

In chapter 6, you’ll learn how to resolve fields from databases to implement the API queries of the book’s project. Chapter 7 builds on that and explores some optimizations for GraphQL queries. And in chapter 8, you’ll learn how to resolve API mutation operations to create, update, and delete database entities.