GraphQL 5.0.0 Brings Stable 5.x Release to Drupal 10 and 11

GraphQL 5.0.0 Stable Released for Drupal 10 and 11

After more than a year of 5.x development, the GraphQL module for Drupal has reached version 5.0.0 as a stable release for Drupal 10 and Drupal 11.

The release matters for teams maintaining API-driven Drupal builds because it changes parts of the developer-facing API. Custom resolver registries, resolver interfaces, schema plugins, schema extensions, data producers, and persisted queries may need review before sites move to the new branch.

Klaus Purer, principal engineer at Jobiqo, announced the stable release in a LinkedIn post and on the Drupal.org planning issue. He thanked contributors and gave special recognition to Alexander Varwijk for work on the module during the development cycle.

Version 5.0.0 updates the underlying webonyx/graphql-php dependency to 15.x. The release notes say the change introduces few noticeable breaking changes, but developers may need to update custom code where earlier method calls no longer match the new API.

The release also adds strict typing, return types, and property types across the GraphQL codebase. Method signatures have changed for classes and interfaces such as ResolverRegistry, ResolverInterface, and schema plugin implementations.

PHP attributes can now be used to define GraphQL plugins, including schema plugins, schema extensions, data producers, and persisted queries. Existing doc comment annotations continue to work, preserving compatibility for older implementations while allowing newer plugin definition patterns.

The release removes the graphql.settings.yml configuration file. The module includes an update function to delete the configuration from the database, while projects that track the file in version control are advised to remove it manually.

Schema plugin handling also changes in this release. The AlterableComposableSchema class and alterable_composable plugin ID are deprecated, with alter events moved into SdlSchemaPluginBase so they apply to extending schema plugin classes.

The 5.0.0 release resolves one issue since 5.0.0-rc1, addressing an executor cache prefix bug involving multiple servers. The release notes list almunnings and Kingdutch as contributors for the final stable release.

GraphQL 5.0.0 was created on 7 June 2026 at 08:49 UTC and last updated on 7 June 2026 at 08:50 UTC. The module can be installed with Composer using composer require 'drupal/graphql:^5.0', and additional API changes are documented in the Drupal.org change records for the 5.x branch.

Disclosure: This content is produced with the assistance of AI.

Note: The vision of this web portal is to help promote news and stories around the Drupal community and promote and celebrate the people and organizations in the community. We strive to create and distribute our content based on these content policy. If you see any omission/variation on this please reach out to us at #thedroptimes channel on Drupal Slack and we will try to address the issue as best we can.

Upcoming Events