Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.This module lets you craft and expose a GraphQL schema for Drupal 10 and 11.
It is is built around 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 with lots of data producer plugins available and through custom code.
For ease of development, it includes the GraphiQL interface at /graphql/explorer.
Example implementation
Example modules: https://git.drupalcode.org/project/graphql/-/tree/8.x-4.x/examples
Resources
Documentation: https://drupal-graphql.gitbook.io/graphql/
Project homepage: https://www.drupal.org/project/graphql
Old 3.x version
The 3.x version of this module is now in maintenance mode and is looking for new maintainers!
Differences to the 4.x version: the 3.x version automatically generates a GraphQL schema from Drupal entities and data structures. It exposes Drupal details over the GraphQL API. The 4.x version leaves the GraphQL schema design to the developer, which makes it easier to hide Drupal internal details. The 4.x version requires the developer to setup and map the GraphQL API schema.
Check out https://github.com/drupal-graphql/drupal-decoupled-app for a complete example of a fully decoupled React and GraphQL 3.x application.
Upgrading from 3.x to 4.x
We recommend upgrading from 3.x to 4.x to take advantage of the improvements made in the GraphQL module and the underlying GraphQL library. If you still require automatic generation of the schema then take a look at the GraphQL Compose or GraphQL Core Schema projects which have implemented automatic schema generation on top of the 4.x GraphQL module.
Project information
- Project categories: Decoupled, Developer tools, Performance
6,681 sites report using this module
- Created by fubhy on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 5.x-dev updated 8 Nov 2025 at 10:43 UTC
Development version: 8.x-4.x-dev updated 24 Aug 2025 at 09:23 UTC
Development version: 8.x-3.x-dev updated 31 Oct 2024 at 07:40 UTC






