Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Facets 3.0.7 Minor update available for module facets (3.0.7). Release: Superfish Dropdown Menu 8.x-1.16 Minor update available for module superfish (8.x-1.16). Release: Horizon Aid theme 1.0.0 Initial release available for theme vartheme_bs5_horizonaid (1.0.0)! Release: Vartheme Bs5 5.0.1 Minor update available for theme vartheme_bs5 (5.0.1). Release: Varbase AI Figma 1.0.2 Minor update available for module varbase_ai_figma (1.0.2). Release: AI Figma 1.0.1 Minor update available for module ai_figma (1.0.1). Release: Varbase AI Figma 1.0.1 Minor update available for module varbase_ai_figma (1.0.1). Release: Mapy.com 1.1.4 Minor update available for module mapycom (1.1.4). Usage Milestone: Shortcode Module shortcode crossed 1,000 active installs. Module Revived: PDF using mPDF 3.0.1 Module pdf_using_mpdf updated after 13 months of inactivity (3.0.1).

GraphQL Node Preview

11 sites Security covered Drupal 9–11

Part of the Graphql ecosystem · 29 projects

View on drupal.org

This module adds a GraphQL query that allows you to retrieve a preview of a node using its UUID. This enables obtaining node content for preview purposes without caching.

A module to get node previews using GraphQL.

It adds a nodePreviewByUuid() query to GraphQL, to be able to obtain a node preview using entity's UUID.

The expected workflow to make this module work is as following:

  • Edit any node and click on "Preview" button
  • A new tab opens, with a URL like this: http://example.com/node/preview/e2731f6f-3155-4fe9-9901-7b8c2e3c5b04/full
  • Grab the UUID (the "8-4-4-4-12" chars, "e2731f6f-3155-4fe9-9901-7b8c2e3c5b04" in this example)
  • Execute a GraphQL query like this one:
    graphql
    {
      preview:nodePreviewByUuid(uuid: "e2731f6f-3155-4fe9-9901-7b8c2e3c5b04") {
        title
        ... on NodeArticle {
          body {
            value
          }
        }
      }
    }
    

Being a preview operation, nodePreviewByUuid() is not cached.

You can use any UUID to query nodePreviewByUuid(). If that UUID has not been previewed, nodePreviewByUuid() works just the same as nodeById() query, retrieving the entity associated with that UUID. Please note that nodePreviewByUuid() is not cached, so do not use it as a substitute of nodeById().

Dependencies

It needs GraphQL module version 3 to work.

Configuration

Install it and it works. There's no configuration, no UI.

Depends on

Dependencies of the latest stable release

  • graphql Drupal core ^8.x-3.2
  • graphql_core Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jul 2026
Latest release
1 month ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
8.x-1.4 Stable 9–11 Jul 23, 2026