I'm trying to set-up AppSync to forward certain resolvers to a Lambda which already exposes a GraphQL interface. For this I need to construct the query or mutation which the user submitted to AppSync, and submit it to my service. While I'm able to get the field names, and the selection part of the query is available as GraphQL from $context.info.selectionSetGraphQL, I only found $context.arguments which gives the arguments as JSON.
So far my AppSync VTL template can reconstruct queries with no arguments as:
"$util.str.toLower($context.info.parentTypeName) $operationName { $context.info.fieldName $context.info.selectionSetGraphQL }"
(Excerpt from the answer I shared here).
How do I reconstruct the arguments as GraphQL?