Action result object
Here's how action result object is structured (all keys are optional):
data
: when execution is successful, what you returned in action's server code.validationErrors
: when input data doesn't pass validation, an object that contains the validation errors. Can be customized usingdefaultValidationErrorsShape
initialization option and/or viahandleValidationErrorsShape
function passed toschema
method.bindArgsValidationErrors
: when bound arguments don't pass validation, an object that contains the validation errors. Can be customized usingdefaultValidationErrorsShape
initialization option and/or viahandleBindArgsValidationErrorsShape
function passed tobindArgsSchemas
method.serverError
: when execution fails, an error object that contains the error message, customizable by using thehandleServerError
initialization function.