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

Comments

bstan created an issue.

bstan’s picture

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?