loadWorkspaceData

Topics: Surfaces

Runs a declared read-only Lua loader on the current published Workspace version; returns JSON.

Returns

String!

Arguments

Workspace version to inspect or invoke.

handler

String!Required

Name of the declared server Lua handler.

JSON object passed to the handler and validated against its input contract.

Exact field SDL
"""
Runs a declared read-only Lua loader on the current published Workspace version; returns JSON.
"""
loadWorkspaceData(
  """Workspace version to inspect or invoke."""
  versionId: WorkspaceVersionID!
  """Name of the declared server Lua handler."""
  handler: String!
  """
  JSON object passed to the handler and validated against its input contract.
  """
  inputJSON: String!
): String! @topic(names: ["surfaces"])

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