Want to build APIs like Facebook?

Since Facebook’s framework for building APIs, GraphQL, has become publicly available, this ambition seems to be within reach for many companies. And that is great. But first, let’s learn what GraphQL really is and – maybe even more importantly – let’s figure out how to apply GraphQL to build APIs that consumers love.

In this book, we take a hands-on approach to learning GraphQL. We first explore the concepts of the two GraphQL languages using examples. Then we start writing some code for our first GraphQL API. We develop this API step by step, from creating a schema and resolving queries, over mocking data and connecting data sources all the way to developing mutations and setting up event subscriptions.

Are your API consumers important to you? This book shows you how to apply a consumer-oriented design process for GraphQL APIs, so you can deliver what your consumers really want: an API that solves their problems and offers a great developer experience.

Do you want to enable the API consumers so they can build great apps? This book explains the GraphQL query language, which allows the API consumers to retrieve data, write data and get notified when data changes. More importantly, you let them decide, which data they really need from the API.

Do you want to make your API easy and intuitive to use? This book shows you how to use the GraphQL schema language to define a type system for your API, which serves as a reference documentation and helps your API consumers write queries that are syntactically correct.

Do you want to profit from what has worked for others? This book provides a collection of best practices for GraphQL that have worked for other companies, e.g. regarding pagination, authentication and caching.

What about REST? GraphQL and REST are competing philosophies for building APIs. It is not in the scope of this book to compare or discuss the two approaches. The focus of this book is on a hands-on approach for learning GraphQL.

What is the API-University Series? The API-University Series is a modular series of books on API-related topics. Each book focuses on a particular API topic, so you can select the topics within APIs, which are relevant for you.

Keywords: GraphQL, API, REST, Design, Web Service, Mobile App, React

The Book

Buy PDF       $29.99

About

Title: GraphQL API Design
Author: Matthias Biehl
Release Date: 2018-01-30
Length: 95 pages
Language: English
ISBN-10: 1979717524
ISBN-13: 978-1979717526
Categories:
COMPUTERS > Web > Web Programming
COMPUTERS > Web > Web Services & APIs

Try it


GraphQL Job

Profit from what you have learned and apply for a better GraphQL Job.