v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1451205197.1 KB

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).

post/v1/dataplane-evaluatetemplate

Request body

templatestring required

The mapping template; this can be a request or response template. A <code>template</code> is required for this action.

contextstring required

The map that holds all of the contextual information for your resolver invocation. A <code>context</code> is required for this action.

Response

Success

evaluationResultstring

The mapping template; this can be a request or response template.

logsString[]

A list of logs that were generated by calls to <code>util.log.info</code> and <code>util.log.error</code> in the evaluated code.