MCPcopy Create free account
hub / github.com/aws-samples/aws-appsync-resolver-samples / response

Function response

samples/lambda/invoke.js:30–36  ·  view source on GitHub ↗
(ctx)

Source from the content-addressed store, hash-verified

28 * @returns {*} the Lambda function response
29 */
30export function response(ctx) {
31 const { result, error } = ctx;
32 if (error) {
33 util.error(error.message, error.type, result);
34 }
35 return result;
36}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected