listWorkspaceVersions

Topics: Surfaces

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

Returns

WorkspaceVersionConnection!

Arguments

TypeID of the workspace whose versions to list (prefix wks). Returns an empty page when unknown or not visible to the caller.

first

IntOptional

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

after

StringOptional

Cursor from a previous page's endCursor; results resume after it. An unresolvable cursor is ignored and the first page is returned.

Exact field 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"])

Declared on Query. Access is checked by the platform for each operation.