The GraphQL API Mapping function type maps functions to GraphQL API endpoints. It is defined like this:Documentation Index
Fetch the complete documentation index at: https://docs.getmembrane.com/llms.txt
Use this file to discover all available pages before exploring further.
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: