Skip to content

Leksat/graphql-drupal

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

GraphQL for Drupal

This module lets you craft and expose a GraphQL schema for Drupal 8.

It is is built around https://github.com/webonyx/graphql-php. As such, it supports the full official GraphQL specification with all its features.

You can use this module as a foundation for building your own schema through custom code or you can use and extend the generated schema using the plugin architecture and the provided plugin implementations form the sub-module.

For ease of development, it includes the GraphiQL interface at/graphql/explorer.

Installation

This module requires composer for installation. To install, simply run composer require drupal/graphql.

Quickstart

To get a quick overview from the query part of GraphQL in action watch the following video's.

Headless Drupal with GraphQL from scratch - part 01 Headless Drupal with GraphQL from scratch - part 02

Example implementation

Check out https://github.com/fubhy/drupal-decoupled-app for a complete example of a fully decoupled React and GraphQL application. Feel free to use that repository as a starting point for your own decoupled application.

Documentation

Documentation is hosted on gitbook.io. There is a separate branch for documentation on version 4 of the module.

These blog posts provide additional information on how to use and extend the module as well as other other contributed modules supporting it:

Resources

Related projects

About

GraphQL integration for Drupal 8

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 99.0%
  • Other 1.0%