Drupal is a registered trademark of Dries Buytaert
Drupal 10.6.14 Update released for Drupal core (10.6.14)! Drupal 11.3.16 Update released for Drupal core (11.3.16)! Entity Usage 8.x-2.2 Minor update available for module entity_usage (8.x-2.2). Entity Usage 5.0.0-beta4 New beta version released for module entity_usage (5.0.0-beta4). OpenCulturas 3.0.4 Minor update available for distribution openculturas (3.0.4). CaptchEtat (with CAPTCHA) 2.2.0 Minor update available for module captcha_captchetat (2.2.0). Static Suite 1.2.9 Minor update available for module static_suite (1.2.9). Media Scroller 1.0.5 Minor update available for module media_scroller (1.0.5). Features 8.x-3.17 Module features updated after 9 months of inactivity (8.x-3.17). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

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.

Activity

Total releases
1
First release
Jul 2026
Latest release
2 hours ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
8.x-1.4 Stable Jul 23, 2026