Tag: aws-appsync-resolver
-
In AWS AppSync VTL resolvers how to change a value before writing it to the datasource?
0 With this req template I can send the event to a lambda where I can check and edit some user input fields: { "version": "2018-05-29", "operation": "Invoke", "payload": { "typeName": "$ctx.stash.get("typeName")", "fieldName": "$ctx.stash.get("fieldName")", "arguments": $util.toJson($ctx.arguments), "identity": $util.toJson($ctx.identity), "source": $util.toJson($ctx.source), "request": $util.toJson($ctx.request), "prev": $util.toJson($ctx.prev) } } My lambda is correctly triggered. I’m not sure what…
-
Appsync returns null values
0 Here’s the relevant schema definitions: type Course implements GrApp { id: ID! term_id: ID! term_name: String type: String! name: String! data: AWSJSON course_info: AWSJSON } interface GrApp { id: ID! type: String! name: String! data: AWSJSON } input TableGrAppFilterInput { id: TableIDFilterInput type: TableStringFilterInput name: TableStringFilterInput } input TableIDFilterInput { ne: ID eq: ID…