Help Centre › Building Processes
Execute a GraphQL query or mutation.
Add it to a process
In the process designer, open the Add step tab. Find Execute a GraphQL query or mutation under Network › Protocols, or type its name in the search box, and drag it onto the canvas.
Fields
| Field | Required | What it does |
|---|---|---|
| GraphQL endpoint URL | Yes | The request URL or path (appended to the base URL) |
| GraphQL query | Yes | e.g. { users { id name } } |
| Session name | No | Session name Default: default. |
| Variable | Yes | Name of the variable that keeps the reply, without braces, e.g. response. It holds status_code, headers and body, so a later step reads the data as {response[body]}. Default: response. |
| Variables (JSON object) | No | e.g. {"id": "123"} |
| Additional headers (JSON object) | No | HTTP headers to include, one per line (Header: Value) |
| Timeout (seconds) | No | Request timeout in seconds |
What it gives back
{response}– GraphQL response data
See all Network steps.
Errors
| Error | Description |
|---|---|
| Connection failed | Unable to establish a connection to the GraphQL endpoint |
| Query validation error | The GraphQL query is invalid or does not match the schema |
Tips
- Always check response.body.errors for GraphQL-level errors, even when the HTTP status is 200
- Use the variables parameter instead of string interpolation for dynamic values – this is safer and enables query caching
- Use a session (api-session) with auth for APIs that require authentication