Support revision argument for all entity queries

Created on 29 March 2024, 8 months ago

Problem/Motivation

The only way to retrieve draft versions of content is either through `entityQuery` or leverage the `router`. Desirably, having the ability to retrieve the latest revision for an `entityById` or `entityByUuid` will allow for queries to be consistent whether retrieving the default or latest revision.

Proposed resolution

Include the `revision` parameter in the `entityById` and `entityByUuid` queries.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bstan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @bstan
  • πŸ‡ΊπŸ‡ΈUnited States bstan

    I see that the `entityById` and `entityByUuid` are leverage the `entity_load` provided by the `drupal/graphql` module, could this functionality be exposed by a `entityByRevisionId` query?

Production build 0.71.5 2024