Progressively decouple Drupal 8 with GraphQL and Twig

JohnAlbin

This session will present a beginner’s guide and demo on how to use GraphQL in Twig. Decoupled Drupal is the future, but learning an entirely new stack can be daunting. Writing GraphQL inside Twig templates gives developers a path to an accessible progressive-decoupled approach. 

This session will introduce GraphQL queries and demonstrate the advantages of changing the Drupal push model to a pull model by letting the twig template define its data requirements including:

  • Clearer data flow

  • Increased readability

  • Improved maintainability

Learning Objectives

  1. Use Drupal GraphQL module to query content.
  2. Write GraphQL queries in / alongside Twig templates as well as create dynamic lists & displays of content with GraphQL Views module.
  3. Consume GraphQL data in Twig or prepare for other frameworks like React.

 

Target Audience

This session is for site builders and front-enders / Drupal 8 themers who would like to decouple their websites but aren't quite ready for learning a new tech stack like React or Vue.

Prerequisites

Attendees should have a basic knowledge of Drupal 8, Views and Twig theming.

Track

Development & Coding

Tags

apis
decoupled
drupal 8
front-end development

Experience Level

Beginner

When & Where

Time: 
Friday, 17 July, 2020 - 00:15 to 01:00
Room: 
Hopin Sessions

If no timezone is set on your profile, time is displayed in UTC.
Update your profile's timezone