For the complete documentation index, see llms.txt. This page is also available as Markdown.

GraphQL

Naming Convention

All GraphQL universal modules should have the following module label and description:

  • Module label: Execute a GraphQL query

  • Module description: Performs an arbitrary authorized GraphQL query.

When you create the module, fill in the Create module dialog as follows:

Field
Value

Type

Universal

Subtype

GraphQL

Name

Any name that is unique in your app, for example executeGraphQLQuery

Label

Execute a GraphQL query

Description

Performs an arbitrary authorized GraphQL query.

{
    "url": "https://www.example.com/graphql",
    "method": "{{parameters.method}}",
    "qs": {
		"query": "{{parameters.queryQs}}"
	},
    "headers": {
		"Content-Type": "application/json"
	},
	"body": {
		"query": "{{parameters.queryBody}}",
		"operationName": "{{parameters.operationName}}",
		"variables": "{{if(isArray(parameters.variables), toCollection(parameters.variables, 'key', 'value'), parameters.variables)}}"
	},
	"type": "json",
    "response": {
        "output": {
            "headers": "{{headers}}",
            "body": "{{body}}",
			"statusCode": "{{statusCode}}"
        }
    }
}

Last updated