GraphQL Operation
GraphQL Operation posts a GraphQL document and its variables to an endpoint
and hands the response’s data object downstream, unwrapped. Unlike a plain
REST Request, it also understands GraphQL’s error
convention: a 200 response carrying a non-empty errors array is treated as
the failure it is, not passed on as a success. You find it on the node picker’s
API & integrations shelf.
The node has one input handle and one output handle. Every request is a POST to the single endpoint URL; the query document decides what runs.
Authentication
Section titled “Authentication”Set the Credential field to a saved Connection
or Secret. A Connection attaches its resolved
credential as request headers; a Secret’s value is sent as the Authorization
header. Either one overrides an Authorization header you write yourself.
Configuration
Section titled “Configuration”

| Field | Type | Default | Description |
|---|---|---|---|
Operation (operation) | string ✦ (optional) | — | A stored operation from an imported GraphQL schema, instead of a hand-written document. |
Endpoint (uri) | string ✦ (optional) | — | The GraphQL endpoint URL to POST the query to. |
Query (query) | string ✦ (optional) | — | The GraphQL query or mutation document to execute. |
Variables (variables) | string ✦ (optional) | — | The GraphQL variables as a JSON object, e.g. {“limit”: 100, “offset”: 0}. |
Operation name (operationName) | string ✦ (optional) | — | The name of the operation to run, when the document defines more than one. |
Headers (headers) | header rows ✦ (optional) | — | Extra request headers to send, as name/value pairs. |
Credential (credential) | string ✦ (optional) | — | The saved credential that authenticates the request — a Connection or a Secret. |
Timeout (seconds) (timeoutSeconds) | integer ✦ (optional) | — | Maximum seconds to wait for the request before timing out. |
Approval (requiresApproval) | one of inherit, always, never (optional) |
— | Whether a human must approve this before it runs. “Follow the agent’s approval mode” is almost always right: the agent’s mode already decides, based on what this node actually does. Override it only to pin this one node — always ask (even on Autopilot), or never ask. |
On error (onError) | string ✦ (optional) | — | What to do when the request fails: fail the flow, or continue. “Continue” covers an error response, GraphQL errors in a 200 response, a timeout or dropped connection, a domain that does not exist, and an endpoint that is empty or not a full URL (nothing is sent). An address the firewall blocks always fails the flow. |
Fields marked ✦ accept expressions.
Try this node — run it once against your own workspace, with your credentials, without building a flow first.
Output
Section titled “Output”The node emits the unwrapped data object from the response, so a
downstream expression reads $prev->articles rather than
$prev->data->articles. A response with a non-empty errors array fails the
node, even when the HTTP status is 200. With On error set to Continue with an error envelope, a
failure completes with a structured envelope instead:
{ "error": true, "upstreamStatus": null, "graphqlErrors": [{ "message": "Unknown field \"titel\"." }], "circuitOpen": false, "message": "..."}graphqlErrors carries the endpoint’s own error objects when the transport
succeeded but the query failed; upstreamStatus is set for 4xx/5xx transport
failures. See Handle unreliable APIs for the
retry and circuit breaker behaviour shared with the other HTTP nodes.
continue also covers an endpoint that is empty or is not a full URL (no
https://, or no host): nothing is sent, and the envelope’s message says what
the endpoint was. A private or internal address, a full URL with another scheme
such as ftp://, and a domain outside your workspace’s allowed list always fail
the run, whatever On error says.
Worked example
Section titled “Worked example”Write a real GraphQL document in Query, and parameterise it with GraphQL variables instead of interpolating upstream data into the document:
query Articles($limit: Int!) { articles(limit: $limit) { id title }}Then pass the values in Variables, which is where upstream data belongs. Keep typed values JSON-typed by using the raw tags:
{ "limit": {!! $start->limit !!}}Writing "limit": "{{ $start->limit }}" would send the number as a string,
which a typed GraphQL schema rejects.
Limitations
Section titled “Limitations”- The document is sent as-is: the node does not validate it against the
endpoint’s schema, so a typo surfaces as a
graphqlErrorsentry at run time. - Outbound requests are firewalled against private and internal addresses, and the workspace’s outbound access list applies.
- When an agent calls this node as a tool, the call is treated as an external write (a query and a mutation are indistinguishable without inspecting the document), so it can be approval-gated by the agent’s approval mode. See Approvals.
Related
Section titled “Related”- REST Request: for REST endpoints.
- OpenAPI Operation: typed calls against an imported spec.
- Expressions: the grammar used in every ✦ field.
- Handle unreliable APIs: retries, circuit breaker, onError.
- GraphQL services: import a schema and pick operations from a list.