← API reference
Query / surfaces

listJourneyVersions

List all versions of a journey, newest first (authoring history), if the caller may see it.

Arguments

journeyIdJourneyID!

TypeID of the journey whose version history to list (prefix jny). Returns an empty page when the journey is unknown or not visible to the caller.

firstInt

Page size. Omitted returns up to the default page size.

afterString

Cursor from a previous page's endCursor — the page starts at the version after it. An unresolvable cursor is ignored and the first page is returned.

Returns JourneyVersionConnection!

Scalar fields at a glance

totalCountInt
↗ View the complete JourneyVersionConnection type

Explore in a view

Journeys and Workspaces
View exact SDL
"""
List all versions of a journey, newest first (authoring history), if the caller may see it.
"""
listJourneyVersions(
  """
  TypeID of the journey whose version history to list (prefix `jny`). Returns an empty page when the journey is unknown or not visible to the caller.
  """
  journeyId: JourneyID!
  """Page size. Omitted returns up to the default page size."""
  first: Int
  """
  Cursor from a previous page's `endCursor` — the page starts at the version after it. An unresolvable cursor is ignored and the first page is returned.
  """
  after: String
): JourneyVersionConnection! @topic(names: ["surfaces"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.