Node preview with UUID in the URL
nodePreviewByUuid() query example

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:

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.

Supporting organizations: 

Project information

Releases