hands-on lab

Introduction to GraphQL

Difficulty: Beginner
Duration: Up to 1 hour
Students: 203
Rating: 5/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

GraphQL is a query language and runtime technology widely used to develop fast and flexible APIs. In 2012, Facebook created GraphQL to improve client and server communication. To accomplish this, GraphQL provides the following:

  • An efficient, developer-friendly, data-fetching API
  • A fast, flexible query language
  • Easy integration with existing code sources and environments

In this lab, you will learn about the core features of GraphQL and how it compares to traditionally-structured REST APIs. You will be provided with a predefined data set which you will access using various GraphQL queries.

Learning Objectives

Upon completion of this beginner-level lab, you will be able to:

  • Define the core features and benefits of GraphQL
  • Retrieve and manipulate a predefined set of data using GraphQL query and mutation types

Intended Audience

  • Cloud Architects
  • Software Engineers

Prerequisites

Familiarity with the following will be beneficial but is not required:

  • REST APIs
  • NodeJS

Updates

October 10th, 2023 - Resolved Node.js issue

Covered topics

Lab steps

Introduction to GraphQL
Exploring a GraphQL Schema and Resolvers
Working with GraphQL Queries and Mutations