GraphQL for Drupal 5.0.0-beta2 Released With Cacheability Fix and Node Preview Support

GraphQL for Drupal 5.0.0-beta2 Released With Cacheability Fix and Node Preview Support

GraphQL for Drupal 5.0.0-beta2 has been released with a fix for cacheability metadata in the current:user query result and added support for node preview URLs and entity reference revisions.

The beta resolves four issues since 5.0.0-beta1 and is compatible with Drupal 10.4 and 11. It can be installed using Composer with composer require 'drupal/graphql:^5.0@beta'.

According to the changelog, the primary bug fix ensures that proper cacheability metadata is attached to the current user query result, improving cache behaviour when queries depend on user context.

A new feature adds support for node preview URLs in route_entity and entity_reference_revisions, improving compatibility with preview and revision-based editorial workflows. Additional updates include fixes for PHPStan annotations and deprecation errors, along with documentation updates reflecting 5.x versioning.

The release was created by Klaus Purer. In a LinkedIn post, Klaus described the changes from beta1 as minor and noted that the project is nearing a stable 5.0 release, with additional improvements currently being worked on by Alexander Varwijk.

Release notes and download details are available on the official Drupal.org release page at drupal.org/project/graphql.

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

Latest Opportunities