Practical GraphQL - Become a GraphQL Ninja

Video description

A practical course to get you up to speed with the key aspects of GraphQL, including queries, mutations, scalar types, image management, authentication, and authorization

About This Video

  • Learn the key aspects of GraphQL and create sample applications
  • Explore how to create custom scalars, how authentication and authorization work in GraphQL, and much more

In Detail

Have you heard about GraphQL? Have you always wanted to understand GraphQL? If yes, this course will help you learn about GraphQL in a hands-on manner.

As you progress through the course, you will acquire the skills necessary to understand and work with GraphQL's basic as well as advanced features, including but not limited to the following:

  • Understand basic scalar types
  • Create custom scalars
  • Become familiar with resolvers and type definitions (Schemas)
  • Understand the importance of a data model in GraphQL
  • Explore how GraphQL queries work, including parameterized queries
  • Gain working knowledge of GraphQL mutations
  • Get to grips with how file uploads work using GraphQL
  • Learn how to serve images in the GraphQL context
  • Study how authentication and authorization work in GraphQL

You’ll create four sample applications:

  • A basic application to run GraphQL queries
  • An advanced application that uses React to work with GraphQL
  • Enhance the existing application and extend it with authentication and authorization
  • An application to understand how to serve/display images and upload files using only GraphQL

In this course, you’ll mostly use Apollo GraphQL services for building your apps.

Familiarity with React is required to get started with this course. You’ll use React to create several applications; however, it only covers the React parts that are relevant to the context.

Publisher resources

Download Example Code

Table of contents

  1. Chapter 1 : Introduction
    1. Introduction to GraphQL
    2. Creating the application shell
  2. Chapter 2 : Working with Static Data
    1. Basic GraphQL Queries and Types
    2. Additional basic GraphQL Queries
    3. GraphQL Queries with Parameters
    4. Student Challenge - create your own GraphQL Type
    5. Solution to the Student Challenge
  3. Chapter 3 : GraphQL Type Relationships
    1. Type Relationships in GraphQL
    2. Student Challenge: Create a type relationship
    3. Solution to the Student Challenge
  4. Chapter 4 : GraphQL Mutations
    1. Basic mutations
    2. Basic mutations – continued
  5. Chapter 5 : Code refactoring
    1. Separating Models, Schemas and Resolvers
    2. Separating Models, Schemas and Resolvers – continued
  6. Chapter 6 : Adding a database for GraphQL
    1. Installing MySQL and Workbench
    2. Serving Data from the Database
    3. Updating GraphQL Resolvers to use the Database
    4. Updating GraphQL Resolvers to use the Database – continued
    5. Adding CORS to GraphQL
  7. Chapter 7 : GraphQL and React
    1. Getting started with React and GraphQL
    2. Finishing up with the React and GraphQL application
  8. Chapter 8 : Authentication and Authorisation in GraphQL
    1. Installing the necessary dependencies
    2. Preparing the model for authentication
    3. Registering a user via GraphQL
    4. Creating A JSON Web Token via GraphQL
    5. Adding authorisation via GraphQL
  9. Chapter 9 : Managing Images with GraphQL
    1. Introduction to Cloudinary
    2. Uploading images via GraphQL
    3. Using Custom Scalars and Serving Images
  10. Chapter 10 : Create an Application to Display an Image via GraphQL
    1. Using Pug as a Templating System with Express and GraphQL
    2. Accessing GraphQL Query Data From Pug - part 1
    3. Wrapping Up the Application to Display a Profile Image
    4. Wrapping Up the Application to Display a Profile Image
  11. Chapter 11 : Authentication via React and GraphQL
    1. Creating the shell of the application
    2. User Registration via React and GraphQL
    3. User Login via React and GraphQL
    4. Displaying a User Profile in React Using GraphQL
    5. Enhancing the User Profile
    6. Creating a Logout Functionality using React and GraphQL
    7. File (Image) Upload in the Backend (Node.js)
    8. File (Image) Uloading using the Frontend (React, Cloudinary, GraphQL)
    9. Creating the Final Profile to Display a Profile Image via React and GraphQL

Product information

  • Title: Practical GraphQL - Become a GraphQL Ninja
  • Author(s): Tamas Piros
  • Release date: April 2019
  • Publisher(s): Packt Publishing
  • ISBN: 9781838823009