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

Function request

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

Source from the content-addressed store, hash-verified

6 * @returns {import('@aws-appsync/utils').LambdaRequest} the request
7 */
8export function request(ctx) {
9 const payload = {
10 arguments: ctx.arguments,
11 identity: ctx.identity,
12 source: ctx.source,
13 request: ctx.request,
14 info: {
15 fieldName: ctx.info.fieldName,
16 parentTypeName: ctx.info.parentTypeName,
17 variables: ctx.info.variables,
18 selectionSetList: ctx.info.selectionSetList,
19 selectionSetGraphQL: ctx.info.selectionSetGraphQL,
20 },
21 };
22 return { operation: 'Invoke', payload };
23}
24
25/**
26 * Process a Lambda function response

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected