Add revision parameter to route query

Created on 19 July 2024, 9 months ago
Updated 5 September 2024, 8 months ago

Problem/Motivation

Provide the ability to retrieve data using revision as parameter on route query similar to the work done at this issue https://www.drupal.org/project/graphql_compose/issues/3446883 ✨ Return latest revision of content Fixed

Steps to reproduce

Proposed resolution

Mimic work on issue https://www.drupal.org/project/graphql_compose/issues/3446883 ✨ Return latest revision of content Fixed

{
  # take this idea 
  nodePage(
    id: "2c00e270-b434-4087-aeea-08a039988618",
    revision: "working-copy"
  ) {
    id
    title
    showTitle
  }

  # and add revision argument to route query 
  route(
    path: "/home"
    revision: "working-copy"
  ) {
    __typename
    ... on RouteInternal {
      __typename
      entity {
        __typename
        ... on NodeInterface {
          id
          title
        }
        ... on NodePage {
          showTitle
        }
      }
    }
  }
}

Remaining tasks

User interface changes

API changes

Expose a parameter to allow for a revision version (latest, working-copy, or revision id) to be provided to the route query

Data model changes

✨ Feature request
Status

Active

Version

2.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jmolivas El Centro, CA

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024