Selected Session

Turning Drupal into a GraphQL API

Speaker(s)
Sebastian Siemssen
Level of expertise
Advanced
Session Type
Workshop (2h)
Track(s)
Decoupled Frontend
Day
Saturday
Time Slot
-
Room
Ducan

This is a hands-on workshop.

In this workshop you will learn, hands-on, how to turn Drupal 8 into a GraphQL API serving a decoupled React application.

After a short presentation covering the basics of GraphQL we will jump right into code and start adding a GraphQL API layer to a pre-configured Drupal 8 project. Together, we will craft a full GraphQL schema for the pre-configured Drupal 8 instance. The schema will expose type and field mappings for the corresponding Drupal data layer. We will mainly be using the Entity API services to expose real data through our hand-crafted schema.

Once we've got a first version of our schema, we will be switching into the React realm and leverage our GraphQL API to build a small demo application.

This workshop covers, hands-on:

  • GraphQL
  • Queries & Mutations
  • Relay
  • GraphQL in PHP & Drupal
  • React

In addition to the already mentioned coding exercises we will also cover some tips, tricks and best practices when working with decoupled (Drupal) applications. These will cover topics like:

  • Routing
  • Hosting
  • Caching
  • Authentication & Authorization

You should bring your own laptop with docker and docker-compose pre-installed to be able to execute the coding exercises.