โ† API reference
Query / surfaces

listWorkspaceVersions

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

Arguments

workspaceIdWorkspaceID!

TypeID of the workspace whose versions to list (prefix wks). Returns an empty page when 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; results resume after it. An unresolvable cursor is ignored and the first page is returned.

Returns WorkspaceVersionConnection!

Scalar fields at a glance

totalCountInt
โ†— View the complete WorkspaceVersionConnection type

Explore in a view

Journeys and Workspaces
View exact SDL
"""
List all versions of a workspace, newest first (authoring history), if the caller may see it.
"""
listWorkspaceVersions(
  """
  TypeID of the workspace whose versions to list (prefix `wks`). Returns an empty page when unknown or not visible to the caller.
  """
  workspaceId: WorkspaceID!
  """Page size. Omitted returns up to the default page size."""
  first: Int
  """
  Cursor from a previous page's `endCursor`; results resume after it. An unresolvable cursor is ignored and the first page is returned.
  """
  after: String
): WorkspaceVersionConnection! @topic(names: ["surfaces"])

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