Aws Appsync $util.error: data and errorInfo always null
问题 I am playing with AWS AppSync. I am trying to output some error details when the request fails using the $util.error() helper (Documented here) in my resolver's response mapping template. No matter what I do, I am not able to get AppSync to output the data and errorInfo fields in the error output. Here is the Lambda I have. exports.handler = (event, context, callback) => { callback(null, { data: { name: "Test", }, errorMessage: "Some error Message", errorType: "SomeErrorType", errors: { "foo"