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.


