getWorkspaceVersion

Topics: Surfaces

Fetch one workspace version by ID. Returns null when the workspace is not visible to the caller, and when the version is still an open draft and the caller is not its author — matching what listWorkspaceVersions would show.

Returns

WorkspaceVersion

Arguments

TypeID of the workspace version to fetch (prefix wsv).

Exact field SDL
"""
Fetch one workspace version by ID. Returns null when the workspace is not visible to the caller, and when the version is still an open draft and the caller is not its author — matching what `listWorkspaceVersions` would show.
"""
getWorkspaceVersion(
  """TypeID of the workspace version to fetch (prefix `wsv`)."""
  id: WorkspaceVersionID!
): WorkspaceVersion @topic(names: ["surfaces"])

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