Building Scalable APIs with GraphQL 14
GraphQL is a query language and runtime that can provide a common interface between client and server applications for fetching and manipulating data. This course will show you how to build and consume GraphQL APIs with real-world examples.
What you'll learn
Want to get up and running with building and consuming GraphQL APIs? In this course, Building Scalable APIs with GraphQL, you'll learn what separates GraphQL from other languages and API runtimes, like REST APIs, as well as what problems GraphQL solves, and how to use it for declarative data communication. This course is a good place to start for learning GraphQL, but to get the most from this course, you should have some experience with JavaScript and with databases, like MongoDB and PostgreSQL. You'll learn how to create a GraphQL schema and how to use it via any interface, including an HTTP-based one. You'll learn about the different features of the GraphQL language as well as how to build them in a GraphQL server. Next, you'll learn to use multiple databases with GraphQL, how to model relationships between different entities and collections, and how to use caching and batching via tools like Dataloader to avoid extra queries to the database and to solve problems like the N+1 queries problem. Finally, you'll learn how to work with promises, mutations, union types, and how to use database views with GraphQL. By the end of this course, you'll know how to build and consume a GraphQL API, and how to do so efficiently.
Table of contents
- Introduction 2m
- Loading Some Test Data 5m
- Your First GraphQL Schema 5m
- Setting up a GraphQL HTTP Endpoint 4m
- Defining Custom GraphQL Types 5m
- Using the Context Object 4m
- Reusable Field Definitions 3m
- camelCase allTheThings 2m
- Modeling a One-to-many Relationship 6m
- Reading Counts from MongoDB 4m
- Summary 1m