Format
query– The GraphQL query or mutation stringvariables– Variables mapping for the GraphQL queryresponseMapping– Mapping to transform the GraphQL response
Variables
credentials– Authentication credentials from the current connectionparameters– Function-level and collection-level parameters combined- Function-specific input variables
responseMapping:
response.data– GraphQL response dataresponse.errors– GraphQL response errors (if any)response.extensions– GraphQL response extensions (if any)
Using in Connector Files
When used in connector files, the mapping is written in a separate file named<function-name>.graphql.yml.
For example: