/AWS1/CL_APY=>EVALUATEMAPPINGTEMPLATE()
¶
About EvaluateMappingTemplate¶
Evaluates a given template and returns the response. The mapping template can be a request or response template.
Request templates take the incoming request after a GraphQL operation is parsed and convert it into a request configuration for the selected data source operation. Response templates interpret responses from the data source and map it to the shape of the GraphQL field output type.
Mapping templates are written in the Apache Velocity Template Language (VTL).
Method Signature¶
IMPORTING¶
Required arguments:¶
IV_TEMPLATE
TYPE /AWS1/APYTEMPLATE
/AWS1/APYTEMPLATE
¶
The mapping template; this can be a request or response template. A
template
is required for this action.
IV_CONTEXT
TYPE /AWS1/APYCONTEXT
/AWS1/APYCONTEXT
¶
The map that holds all of the contextual information for your resolver invocation. A
context
is required for this action.