Migrating from REST to GraphQL

Migrating from REST to GraphQL

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 1h 03m | 505 MB

Why use GraphQL over REST APIs? GraphQL is better at querying multiple databases, offers an easy-to-learn syntax, and allows you to retrieve only the data you need. Learn when you should migrate from REST to GraphQL, and how to convert your REST API add, update, and delete operations into GraphQL mutations. Instructor Emmanuel Henri also explains how to build simple, useful queries; use arguments, fragments, and aliases in queries; and perform operations using GraphQL.

Topics include:

  • Setting up GraphQL
  • Creating the initial schema and type
  • Setting up simple queries
  • Leveraging arguments and aliases
  • Reading, updating, adding, and deleting items with GraphQL
  • Posting data with mutations
Table of Contents

Introduction
1 Replace REST with GraphQL
2 What you should know

First Steps
3 Why use GraphQL for REST
4 REST project introduction
5 Setting up GraphQL
6 Setting up the database
7 GraphQL refresher

Add Items with GraphQL
8 Creating the initial schema and type part 1
9 Creating the initial schema and type part 2
10 Setting up the initial resolvers
11 Finalizing the DB connection
12 Adding a few items with GraphiQL

Read Items with GraphQL
13 Simple queries in GraphQL
14 Leveraging arguments in queries
15 What are aliases and usage
16 Fragments basics

Update Items with GraphQL
17 Overview of mutations
18 Coding your update mutation
19 Testing your update mutation

Delete Items with GraphQL
20 Coding your delete mutation
21 Final test for your mutation

Conclusion
22 Next steps