← All types
Ob Object

ExecuteScriptPayload

Result of executing a Lua script in the playground

Fields

Whether the script executed successfully

JSON-encoded captured rpc.respond() result

errors

[FieldError!]!Non-null

Validation or runtime errors

logs

[ScriptLogEntry!]!Non-null

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.

Referenced by (1)
Exact type 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!]!
}