Mu Mutation

validateLua

Topics: Scripting

Type-check Lua source against the ambient typedef for the chosen role without persisting anything. Safe to call from editors on every keystroke.

Returns

ValidateLuaResult!

Arguments

Lua source + role + options

Exact field SDL
"""
Type-check Lua source against the ambient typedef for the chosen role without persisting anything. Safe to call from editors on every keystroke.
"""
validateLua(
  """Lua source + role + options"""
  input: ValidateLuaInput!
): ValidateLuaResult! @topic(names: ["scripting"])

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