This chapter covers:
- Planning UI features and mapping them to API operations
- Coming up with a schema language text based on planned supported operations
- Mapping API features to sources of data
In the first part 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 these GraphQL services that can understand that language.
We are going to build a real data API for a real web application. I picked the name AZdev for it, which is short for "A to Z" of developer resources. AZdev will be a searchable library of practical micro-documentations, errors and solutions, and general tips for software developers.
I am not a fan of useless abstract examples that are removed from practical realities. Let’s build something real (and useful).
When software developers are performing their day-to-day tasks, they often need to look up one particular thing. For example, how to compute the sum of an array of numbers in JavaScript. They are not really interested in scanning through pages of documentations to find the simple code example they need. This is why at AZdev they will find an entry on "Compute the sum of the numbers in a JavaScript array" featuring multiple approaches on just that particular code development need.