Actions2
Execute Query
AI-generatedSummary
Execute a GraphQL query against Antony’s /api/v2/graphql endpoint using the configured Antony API credentials. Optionally pass variables, split the first field in the response data into n8n items, and include request and response debug data.
Inputs
- Query (required) — GraphQL query string to execute.
- Variables JSON — JSON object of GraphQL variables; defaults to
{}. - Normalize Result — Defaults to true. When enabled, uses the first field in
response.dataand emits its array entries as separate n8n items. Object entries are returned as-is; scalar entries are wrapped as{ "value": ... }. A non-array result is emitted as one item. When disabled, emits the full GraphQL response as one item. - Include Debug Data — Defaults to false. When enabled, adds
__antonyGraphqlDebugwith the request and raw response to each emitted item.
Output shape
One or more n8n items containing GraphQL result data.
With normalization enabled, an empty first-field array produces no items. If the GraphQL response includes errors or the request fails, the operation throws; with n8n Continue On Fail enabled, it instead emits an item containing the error, description, query, and variables.