Skip to main content

Action result object

Here's how action result object is structured (all keys are optional):

NameWhenValue
data?Execution is successful.What you returned in action's server code.
validationErrors?Input data doesn't pass schema validation.A partial Record of input schema keys as key or _root, and string[] as value. _root is a reserved key, used for global validation issues. Example: { _root: ["A global error"], email: ["Email is required."] }.
serverError?An error occurs during action's server code execution.A string that by default is "Something went wrong while executing the operation" for every server error that occurs, but this is configurable when instantiating a new client.