O'Reilly logo
live online training icon Live Online training

GraphQL First Steps

Designing Modern APIs with GraphQL and Apollo

Topic: Web Platform
Eve Porcello

In GraphQL the "Q" stands for Query, which means to question. In this course, we're going to learn GraphQL, a special way to ask internet servers questions. We are going to learn how to ask these special servers all sorts of questions at once and allow them to provide all of the answers in a single response. We'll set up our own GraphQL servers that can answer questions that originate with any client.

Learners will get hands-on experience working with GraphQL and will have what they need to start working on their own GraphQL projects.

What you'll learn-and how you can apply it

By the end of this live, hands-on, online course, you’ll understand:

  • How to write queries, mutations, and subscriptions with the GraphQL query language
  • How to design a GraphQL schema that describes all of your APIs types
  • How to build a GraphQL server with Apollo Server and Node.js

And you’ll be able to:

  • Ask for data from GraphQL servers
  • Model your domain’s types with the schema definition language
  • Write resolver functions to retrieve data from a variety of sources

This training course is for you because...

  • You’re a developer looking for their first introduction to GraphQL.
  • You’re a manager, who is interested in how GraphQL can help their organizations.
  • You want to become a champion of your API’s graph at your company.

Prerequisites

Recommended preparation:

  • To take part in the course exercises, it is recommended the following be downloaded:
  • Node.js version 9+
  • A Code Editor of Some Sort

Recommended follow-up:

About your instructor

  • Eve Porcello is a software engineer, author, and trainer. With her company Moon Highway, she has taught JavaScript, Node, React, and GraphQL courses to engineers all over the world. She’s also created videos and authored training content for O’Reilly, LinkedIn Learning, and egghead.io.

Schedule

The timeframes are only estimates and may vary according to how the class is progressing

GraphQL Query Language (50 minutes)

  • Presentation: Intro to GraphQL and the Query Language (5 min)
  • Build Together: The GraphQL Query Language with the Pet Library API (30 min)
  • Lab: Snowtooth Query Language Lab (10 min)
  • Q&A (5 min)
  • 5 min break

GraphQL Schema Definition Language (50 minutes)

  • Presentation: Understanding GraphQL Schemas (20 min)
  • Hands-on Exercise: Building a GraphQL Schema (25 min)
  • Q&A (5 min)
  • 5 min break

Creating a Server with Apollo Server (60 minutes)

  • Exercise: Building a Server with Apollo Server (30 min)
  • Lab: Creating a Type with GraphQL (20 min)
  • Q&A (10 min)