← API reference
CANONICAL TYPE REFERENCE

ExecuteScriptPayload

Result of executing a Lua script in the playground

successBoolean!

Whether the script executed successfully

JSON-encoded captured rpc.respond() result

Validation or runtime errors

ctx.log.* output from the run, in the order the script wrote it. Present on failed runs too — a script that logs and then fails is exactly the one whose logs matter.

View exact SDL
"""Result of executing a Lua script in the playground"""
type ExecuteScriptPayload {
  """Whether the script executed successfully"""
  success: Boolean!
  """JSON-encoded captured rpc.respond() result"""
  output: JSONString
  """Validation or runtime errors"""
  errors: [FieldError!]!
  """
  ctx.log.* output from the run, in the order the script wrote it. Present on failed runs too — a script that logs and then fails is exactly the one whose logs matter.
  """
  logs: [ScriptLogEntry!]!
}

One stable address across all schema views. Follow a field’s type to explore connections between domains.