GraphQL integration for Drupal 8
Clone or download
fubhy and duartegarin Derive fields based on field definitions instead of storage definitio…
…ns. (#684)

Co-authored-by: Duarte Garin <duarte.garin@protonmail.com>
Co-authored-by: Sebastian Siemssen <fubhy@fubhy.com>
Latest commit 9daffdd Oct 18, 2018
Permalink
Failed to load latest commit information.
assets Fixing css for non-default themes. Sep 11, 2018
config/schema Cleanup. (#516) Feb 12, 2018
console/translations/en Merge graphiql, voyager and query map submodules into base module. (#372 Oct 13, 2017
doc Documentation (#667) Sep 20, 2018
modules/graphql_core Derive fields based on field definitions instead of storage definitio… Oct 18, 2018
src Simplify and reduce cache metadata of responses (#686) Sep 28, 2018
templates Merge graphiql, voyager and query map submodules into base module. (#372 Oct 13, 2017
tests Simplify and reduce cache metadata of responses (#686) Sep 28, 2018
.codecov.yml Update .codecov.yml Feb 10, 2018
.scrutinizer.yml Better string handling and Scrutinizer fixes. (#279) Aug 28, 2017
.travis.yml Fix 8.6 tests (#675) Sep 23, 2018
README.md Documentation (#667) Sep 20, 2018
book.json Documentation (#22) Nov 20, 2016
composer.json Upgrade to webonyx/graphql-php v0.12.5 (#646) Aug 28, 2018
graphql.info.yml Fixing base module description. Oct 18, 2017
graphql.install Fixing issues #611 and #575 (#620) Jun 13, 2018
graphql.libraries.yml Upgrading graphiql and voyager. Nov 7, 2017
graphql.links.action.yml Merge graphiql, voyager and query map submodules into base module. (#372 Oct 13, 2017
graphql.links.menu.yml Merge graphiql, voyager and query map submodules into base module. (#372 Oct 13, 2017
graphql.module Add support for subscription extension (#613) May 28, 2018
graphql.permissions.yml Merge graphiql, voyager and query map submodules into base module. (#372 Oct 13, 2017
graphql.routing.yml Merge graphiql, voyager and query map submodules into base module. (#372 Oct 13, 2017
graphql.services.yml Fix cache max age. (#671) Sep 19, 2018
phpcs.xml.dist Better string handling and Scrutinizer fixes. (#279) Aug 28, 2017
phpunit.xml.dist Fix 8.6 tests (#675) Sep 23, 2018

README.md

Build Status Code Coverage Code Quality

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.

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 heavily worked on, but still far from complete. This is due to the vast amount of improvements and additional features we've added to the module recently. As we are finishing up the 3.x version of this module we will be re-doing the documentation and record a series of screencasts.

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