---
title: "How to Integrate GraphQL APIs Into Enterprise Workflows: Complete 2026 Guide"
date: 2026-05-16T04:44:31Z
modified: 2026-09-15T11:45:47Z
permalink: "https://ezintegrations.ai/graphql-api-integration-enterprise/"
type: post
status: publish
excerpt: ""
wpid: 11692
categories:
  - AI Workflow
  - Workflow Automation
featured_image: "https://ezintegrations.ai/wp-content/uploads/2026/04/How-to-Integrate-GraphQL-APIs-Into-Enterprise-Workflows-Complete-2026-Guide-e1777023028664.avif"
featured_image_alt: How to Integrate GraphQL APIs Into Enterprise Workflows Complete 2026 Guide
author: Adil Mujeeb
---

GraphQL API integration with eZintegrations requires adding a GraphQL connector, entering the endpoint and authentication details, writing a query or mutation, mapping response fields, and enabling pagination for large datasets. Using an Automation Hub template, most enterprise GraphQL integrations can be deployed in under 30 minutes without coding.

## TL;DR

- [GraphQL](https://graphql.org/learn/) is now the primary API protocol for major enterprise SaaS platforms including Shopify, GitHub, Salesforce (partial), HubSpot, and Atlassian. If your enterprise connects to any of these systems, you are already using GraphQL whether you know it or not.
- Unlike REST, GraphQL lets you fetch exactly the fields you need in a single request. This reduces API call volume, eliminates over-fetching, and cuts data transformation effort significantly.
- This guide covers the complete GraphQL integration lifecycle in eZintegrations: authentication setup, writing queries and mutations, handling pagination with cursors, managing errors, and automating the full flow without code.
- Difficulty: technical (IT admin or developer level). Prerequisites: active eZintegrations account, GraphQL API endpoint URL and credentials for your target system.
- Time to complete: 25-45 minutes for your first integration. Under 5 minutes using an Automation Hub template.

## Before You Start

Complete all prerequisites before beginning. Missing any of these will block you at a specific step.

**eZintegrations account:** active account with at least one automation slot. Log in at app.ezintegrations.ai.

**GraphQL API credentials:** you need at minimum:

- The GraphQL endpoint URL (for example: `https://your-store.myshopify.com/admin/api/2024-10/graphql.json`)
- An authentication credential: API key, Bearer token, or OAuth 2.0 client credentials

**API access scope:** confirm you have the correct permissions for the operations you plan to run. Read operations require different scopes from write operations (mutations). For Shopify: ensure your private app has the relevant access scopes enabled. For GitHub: confirm your token has the `repo` scope for repository queries.

**The GraphQL schema or documentation for your target system:** you do not need to memorise it, but keep it open in a browser tab. You will reference it when writing queries.

**Optional but recommended:** a GraphQL client such as GraphiQL or the Insomnia API tool. Use this to test your queries before adding them to eZintegrations.

![graphql-integration-enterprise-prerequisites](https://ezintegrations.ai/wp-content/uploads/2026/04/graphql-integration-enterprise-prerequisites-1024x525.avif)

## Template Shortcut: Skip the Manual Setup

Before following the full step-by-step guide, check whether your GraphQL integration is already in the Automation Hub.

**Open the [Automation Hub](https://ezintegrations.ai/automate-now)** and search for your target system (Shopify, GitHub, HubSpot, Atlassian, or the name of your GraphQL API source).

If a template exists: click Import, enter your API credentials, and you are live in under 5 minutes. The template includes pre-configured queries, pagination, field mapping, and error handling.

If no template exists: follow the full guide below. The manual path takes 25-45 minutes and produces a workflow you can save as a custom template for future reuse.

**Common GraphQL integration templates in the Automation Hub:**

- **Shopify GraphQL:** product sync, order management, inventory updates, B2B company data
- **GitHub GraphQL:** repository events, pull request tracking, issue management
- **HubSpot GraphQL:** contact and deal data with custom property mapping
- **Atlassian (Jira/Confluence):** issue tracking, project data, sprint management

## Understanding GraphQL in an Enterprise Context

GraphQL differs from REST in three ways that matter operationally for enterprise integrations, as defined in the [GraphQL specification](https://spec.graphql.org/):

**Single endpoint.** Every GraphQL API exposes one URL for all operations. You do not have separate endpoints for `/orders`, `/customers`, `/products`. You POST to one endpoint with a different query body each time. This simplifies connector configuration but requires understanding the query language.

**Typed schema.** The API defines a schema that specifies exactly which fields are available, their types, and their relationships. When you write a query, the server validates it against the schema before executing. This means you get immediate, structured error messages when a field name or type is wrong, rather than a generic 400.

**No over-fetching.** REST returns a fixed response structure regardless of what you need. GraphQL returns exactly the fields you request. For enterprise integrations with downstream ERP systems that have strict field requirements, this eliminates the transformation step of stripping unnecessary fields.

The trade-offs: GraphQL uses POST for all requests (including reads), which changes how caching works. Pagination uses cursor-based patterns rather than page numbers, which requires a different implementation than REST pagination. And error handling is more nuanced: GraphQL returns HTTP 200 with errors in the response body rather than HTTP 4xx, which means standard HTTP error handling misses GraphQL errors.

This guide addresses all three trade-offs in the steps below.

## Step 1: Create a New Workflow and Add the GraphQL Node

**What you will do:** create a new workflow in eZintegrations and add the GraphQL connector as your data source node.

1. Log in to your eZintegrations account at `app.ezintegrations.ai`.
2. Click **New Workflow** in the top navigation bar.
3. Give the workflow a descriptive name. Use the format `[Source System] GraphQL: [Operation]`. Example: `Shopify GraphQL: Product Inventory Sync`.
4. In the workflow canvas, click **Add Trigger** and select your trigger type: 
    - **Scheduled**: runs on a cron schedule (every 15 minutes, hourly, daily)
    - **Webhook**: fires when an external system sends a POST to your eZintegrations webhook URL
    - **Manual**: runs on demand, useful for testing
5. After adding the trigger, click the **+** button below it to add the next node.
6. In the node search panel, type **GraphQL** and select the **GraphQL Connector** node.

You will see the GraphQL node added to your workflow canvas with a configuration panel open on the right side.![graphql-step-1-new-workflow](https://ezintegrations.ai/wp-content/uploads/2026/05/31-a-1-1.avif)

**Pro tip:** Use descriptive workflow names from the start. When you have 30+ workflows, “GraphQL Integration 1” is useless. “Shopify GraphQL: Product Inventory Sync” tells you the source, protocol, and operation at a glance.

## Step 2: Configure the Endpoint and Authentication

**What you will do:** enter your GraphQL API endpoint URL and configure authentication so eZintegrations can make requests on your behalf.

In the GraphQL Connector configuration panel on the right:

**Endpoint URL field:** Enter the full GraphQL endpoint URL for your system. Every request goes to this single URL regardless of the operation.

Common enterprise GraphQL endpoints:

- **Shopify Admin API:** `https://[store-name].myshopify.com/admin/api/2024-10/graphql.json`
- **GitHub:** `https://api.github.com/graphql`
- **HubSpot:** `https://api.hubapi.com/collector/graphql`
- **Atlassian (Jira):** `https://api.atlassian.com/ex/jira/{cloudId}/graphql`

**Authentication Type selector:** Click the dropdown and select your authentication method.

**For API Key authentication:**

1. Select **API Key** from the dropdown.
2. Choose **Header** as the location.
3. Enter the header name (for Shopify: `X-Shopify-Access-Token`; for most systems: `Authorization`).
4. Enter your API key or token value.

**For Bearer Token authentication:**

1. Select **Bearer Token** from the dropdown.
2. Paste your token in the Token field.
3. eZintegrations automatically adds the `Authorization: Bearer [token]` header.

**For OAuth 2.0 (Client Credentials):**

1. Select **OAuth 2.0** from the dropdown.
2. Enter your Token URL (the OAuth token endpoint for your system).
3. Enter Client ID and Client Secret.
4. Enter the required scopes (space-separated, as specified by your API documentation).
5. Click **Fetch Token** to test the OAuth flow. You should see a success status and token expiry time.

![graphql-step-2-authentication](https://ezintegrations.ai/wp-content/uploads/2026/05/31-b-1-1.avif)

**Pro tip:** Store your API credentials in the eZintegrations Credentials Vault rather than pasting them directly into each workflow. When you rotate a key (which you should do periodically), update it once in the Vault and all workflows using that credential update automatically.

## Step 3: Write Your First Query

**What you will do:** write a GraphQL query in the query editor to fetch data from your target system.

In the GraphQL Connector panel, find the **Query** section. This is a syntax-highlighted code editor that accepts standard GraphQL query syntax.

**The anatomy of a GraphQL query:**

```

query {
  operationName(argument: value) {
    field1
    field2
    nestedObject {
      nestedField1
      nestedField2
    }
  }
}

```**Shopify product inventory example query (see Shopify Admin[ GraphQL API documentation](https://shopify.dev/docs/api/admin-graphql)):**

```

query GetProductInventory {
  products(first: 50) {
    edges {
      node {
        id
        title
        status
        variants(first: 10) {
          edges {
            node {
              id
              sku
              inventoryQuantity
              price
            }
          }
        }
      }
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}

```**GitHub pull requests example query (see [GitHub ](https://docs.github.com/en/graphql)GraphQL API documentation):**

```

query GetOpenPRs($owner: String!, $repo: String!) {
  repository(owner: $owner, name: $repo) {
    pullRequests(states: OPEN, first: 20, orderBy: {field: CREATED_AT, direction: DESC}) {
      nodes {
        number
        title
        createdAt
        author {
          login
        }
        reviewDecision
      }
    }
  }
}

```**Using variables:**

Note the `$owner` and `$repo` in the GitHub example. These are GraphQL variables: parameterised inputs that keep your query reusable without hardcoding values.

To use variables in eZintegrations:

1. Write the variable declaration in the query: `query GetOpenPRs($owner: String!, $repo: String!)`
2. Click the **Variables** tab below the query editor.
3. Enter a JSON object with the variable values:

```
{
  "owner": "your-org-name",
  "repo": "your-repo-name"
}

```Variables can also reference data from upstream workflow nodes. If a previous node produced a Salesforce account ID, you can reference it with `{{ nodes.salesforce_lookup.output.accountId }}`.![graphql-step-3-query-editor](https://ezintegrations.ai/wp-content/uploads/2026/05/31-c-2.avif)

## Step 4: Run the Query and Inspect the Response

**What you will do:** execute the query against the live API and verify the response structure before building the rest of your workflow.

1. Click the **Run Query** button (the blue play button in the query editor).
2. Wait for the response. A green indicator means success. A red indicator means an error.
3. The **Response** tab automatically opens and shows the full JSON response.

**A successful GraphQL response looks like this:**

```

{
  "data": {
    "products": {
      "edges": [
        {
          "node": {
            "id": "gid://shopify/Product/7891234567890",
            "title": "Industrial Bearing Set - 40mm",
            "status": "ACTIVE",
            "variants": {
              "edges": [
                {
                  "node": {
                    "id": "gid://shopify/ProductVariant/12345678901234",
                    "sku": "IBS-40MM-001",
                    "inventoryQuantity": 247,
                    "price": "89.99"
                  }
                }
              ]
            }
          }
        }
      ],
      "pageInfo": {
        "hasNextPage": true,
        "endCursor": "eyJsYXN0X2lkIjo3ODkxMjM0NTY3ODkwfQ=="
      }
    }
  }
}

```**Key things to verify in the response:**

The data is nested under `data.[operation]`. This is standard GraphQL structure. Note that Shopify and most modern GraphQL APIs use a `connection` pattern: data is always in `edges[].node`, not directly in the response root.

Check `pageInfo.hasNextPage`. If this is `true`, you have more records than your `first: 50` argument returned. You will need pagination (Step 7).

Check for a `errors` array at the same level as `data`. GraphQL returns errors alongside partial data, not instead of data. The HTTP status code will still be 200.![graphql-step-4-response](https://ezintegrations.ai/wp-content/uploads/2026/05/31-d-1.avif)

**Pro tip:** Before building the rest of your workflow, copy the response structure and keep it visible. You will reference it in Step 5 when mapping fields. The exact path to each field (e.g. `data.products.edges[0].node.variants.edges[0].node.sku`) tells you the mapping expression to use.

## Step 5: Map GraphQL Response Fields to Downstream Systems

**What you will do:** extract specific fields from the GraphQL response and pass them to the next node in your workflow (an ERP write, a database update, a CRM field mapping, or a notification).

1. Add the next node to your workflow. Click **+** below the GraphQL node and select your destination system: SAP, NetSuite, Salesforce, a database connector, or an HTTP node.
2. In the destination node configuration, click any field that needs a value from the GraphQL response.
3. Click the **{} Expression** toggle to switch from static value to dynamic expression mode.
4. Use dot notation to reference the GraphQL response. The base path is `nodes.[your-graphql-node-name].output.data`.

**Mapping examples for the Shopify inventory response:**



| Destination Field | Expression |
| --- | --- |
| Product ID | `{{ nodes.shopify_graphql.output.data.products.edges[0].node.id }}` |
| Product Title | `{{ nodes.shopify_graphql.output.data.products.edges[0].node.title }}` |
| SKU | `{{ nodes.shopify_graphql.output.data.products.edges[0].node.variants.edges[0].node.sku }}` |
| Inventory Qty | `{{ nodes.shopify_graphql.output.data.products.edges[0].node.variants.edges[0].node.inventoryQuantity }}` |

**Iterating over multiple records:**

The `edges[0]` pattern accesses only the first record. To process all records in the response, add a **Loop** node between the GraphQL node and the destination node.

1. Add a **Loop** node after the GraphQL node.
2. Set the loop **Source Array** to: `{{ nodes.shopify_graphql.output.data.products.edges }}`
3. Inside the loop, reference the current item as `{{ loop.current.node.id }}`, `{{ loop.current.node.title }}`, etc.
4. The destination system node inside the loop runs once per item in the array.

![graphql-step-5-field-mapping](https://ezintegrations.ai/wp-content/uploads/2026/04/graphql-step-5-field-mapping-1024x642.avif)

**Pro tip:** Use the **Field Browser** button (the database icon) in any expression field to browse the full structure of upstream node outputs. This is faster than typing dot paths manually and eliminates typos that cause silent mapping failures.

## Step 6: Add a Mutation (Write Operations)

**What you will do:** configure a GraphQL mutation to write data to your target system, not just read it.

Mutations are GraphQL’s equivalent of POST, PUT, PATCH, and DELETE in REST. Use them when you need to create or update records.

**When to use mutations:**

- Creating a product, order, or customer in Shopify
- Creating or updating an issue in Jira (Atlassian)
- Merging a pull request or creating a branch in GitHub
- Updating contact properties in HubSpot

**Adding a mutation in eZintegrations:**

1. Add a second GraphQL node to your workflow (after the query node if you are reading then writing).
2. In the query editor, switch to mutation syntax.

**Shopify inventory update mutation example:**

```

mutation UpdateInventoryLevel($inventoryItemId: ID!, $locationId: ID!, $available: Int!) {
  inventorySetOnHandQuantities(
    input: {
      reason: "correction"
      setQuantities: [
        {
          inventoryItemId: $inventoryItemId
          locationId: $locationId
          quantity: $available
        }
      ]
    }
  ) {
    userErrors {
      field
      message
    }
    inventoryAdjustmentGroup {
      reason
      changes {
        name
        delta
      }
    }
  }
}

```**Variables for this mutation:**

```
{
  "inventoryItemId": "{{ loop.current.node.variants.edges[0].node.id }}",
  "locationId": "gid://shopify/Location/12345678",
  "available": "{{ nodes.erp_query.output.stockLevel }}"
}

```**Understanding mutation responses:**

Most GraphQL APIs return a `userErrors` array in mutation responses. This array is not an HTTP error: it is an application-level error that the API returns alongside a 200 HTTP response. Always check for `userErrors` in your mutation response. If the array is non-empty, the mutation failed even though the HTTP status was 200.

Add a **Condition** node after the mutation node to check the `userErrors` array length and route to an error handler if it is not empty.

![graphql-step-6-mutation](https://ezintegrations.ai/wp-content/uploads/2026/04/graphql-step-6-mutation-1024x642.avif)

**Pro tip:** Build a reusable error handling sub-workflow for userErrors. Any mutation workflow that encounters a non-empty `userErrors` array should: log the error to your monitoring system, send a Slack or Teams alert with the error detail, and add the failed record to a retry queue. Building this once as a sub-workflow lets you reference it from any mutation workflow.

## Step 7: Implement Cursor-Based Pagination

**What you will do:** configure pagination to fetch all records when your dataset is larger than the `first: N` argument you specified in your query.

GraphQL APIs use **cursor-based pagination**, not page-number-based pagination. The key fields are:

- `pageInfo.hasNextPage`: boolean, whether more pages exist
- `pageInfo.endCursor`: an opaque string that marks the position of the last record returned
- `after: $cursor` argument: tells the API where to start the next page

**The cursor-based pagination pattern:**

```

query GetAllProducts($cursor: String) {
  products(first: 50, after: $cursor) {
    edges {
      node {
        id
        title
        status
      }
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}

```On the first run, pass no cursor (or `null`). The API returns the first 50 records and the `endCursor` for page 2. On the second run, pass `endCursor` as the `$cursor` variable to get records 51-100. Continue until `hasNextPage` is `false`.

**Implementing pagination in eZintegrations:**

1. In your GraphQL node, add `$cursor: String` to the query variables declaration.
2. Add `after: $cursor` to the operation argument.
3. In the **Variables** panel, set: `"cursor": null`
4. After the GraphQL node, add a **While Loop** node.
5. Set the While Loop condition: `{{ nodes.shopify_graphql.output.data.products.pageInfo.hasNextPage }} == true`
6. Inside the While Loop: a. Add your processing nodes (field mapping, downstream write). b. Add a **Set Variable** node that updates the cursor: `{{ nodes.shopify_graphql.output.data.products.pageInfo.endCursor }}`
7. At the bottom of the While Loop, add the **GraphQL node again**, this time using the updated cursor variable in the `$cursor` variable field.

**Practical note:** For most enterprise use cases with datasets under 10,000 records, the simpler approach is to use `first: 250` (the maximum for most APIs) and process without a pagination loop if you know your dataset fits in one page. Use the cursor loop only when you know you have more records than the maximum `first` value allows.

![graphql-step-7-pagination](https://ezintegrations.ai/wp-content/uploads/2026/04/graphql-step-7-pagination-1024x642.avif)

**Pro tip:** Add a maximum iteration counter (a counter variable that increments each loop) and a safety exit condition (`counter > 100` for example). Without this safety, an unexpected API response that always returns `hasNextPage: true` will create an infinite loop. The counter limit is a guard, not a normal exit path.

## Step 8: Add Error Handling and Retry Logic

**What you will do:** configure error handling for three types of GraphQL failures: HTTP errors, GraphQL errors in the response body, and application errors in mutation responses.

**Understanding the three error categories:**

**Category 1: HTTP errors (4xx, 5xx)** These happen when the request does not reach GraphQL execution: authentication failure (401), rate limit exceeded (429), server error (500).

Configure in the GraphQL node settings:

1. Click the **Error Handling** tab in the GraphQL Connector panel.
2. Set **On HTTP Error**: Retry with exponential backoff.
3. Set **Retry attempts**: 3.
4. Set **Initial delay**: 2 seconds, **Backoff multiplier**: 2 (retries at 2s, 4s, 8s).
5. For 429 (rate limit): check **Respect Retry-After header** if your API returns one.

**Category 2: GraphQL errors in the response body** These occur when the query reaches the server but fails at the GraphQL execution layer: invalid field names, type mismatches, insufficient permissions for requested fields.

The response looks like:

```

{
  "errors": [
    {
      "message": "Field 'inventoryItem' doesn't exist on type 'ProductVariant'",
      "locations": [{"line": 8, "column": 13}],
      "path": ["products", "edges", 0, "node", "variants", "edges", 0, "node"]
    }
  ]
}

```In eZintegrations:

1. After the GraphQL node, add a **Condition** node.
2. Condition: `{{ nodes.graphql.output.errors | length }} > 0`
3. True branch: route to an error logger (Slack notification, database log, email alert).
4. False branch: continue normal processing.

**Category 3: Mutation userErrors** Already covered in Step 6. These are application-layer errors returned in the mutation response body, distinct from GraphQL execution errors.

![graphql-step-8-error-handling](https://ezintegrations.ai/wp-content/uploads/2026/04/graphql-step-8-error-handling-1024x642.avif)

**Pro tip:** Set up a dedicated **Error Workflow** in eZintegrations for GraphQL failures. This workflow receives the error type, the query name, the failed record identifier, and the error message, and routes to the correct team (IT for HTTP errors, data team for schema errors, business team for userErrors). One shared error workflow handles all GraphQL integrations.

## Step 9: Test Your Integration End-to-End

**What you will do:** run a complete end-to-end test of your GraphQL integration before activating it for scheduled or production use.

### Step 9a: Run the Manual Test

1. In your workflow, click **Test Workflow** in the top right.
2. Select **Run Once** to execute the full workflow from trigger to final node.
3. Watch the workflow canvas as each node executes. Green means success. Yellow means running. Red means failed.
4. After completion, click each node to review its input, output, and execution time.

### Step 9b: Verify the GraphQL Request

Click the GraphQL node after the test run. In the **Execution Log** tab:

- **Request sent:** verify the endpoint URL is correct, headers are present, and the query body is what you expect.
- **Response received:** verify the `data` key contains records and the `errors` array is absent or empty.
- **Execution time:** normal GraphQL responses for 50 records should complete in under 500ms. Times over 2 seconds may indicate an over-fetching problem or server-side performance issue.

### Step 9c: Verify the Downstream Write

Check your destination system (ERP, CRM, database) for the records the workflow wrote.

For Shopify-to-ERP inventory sync: check 3-5 random SKUs in both Shopify and your ERP and confirm inventory quantities match.

For GitHub-to-project-management: confirm the pull request data (title, author, reviewDecision) appeared correctly in your project management tool.

For any write operation: verify a record that should have been created exists, and a record that should have been updated reflects the new value.

### Step 9d: Activate

1. If all verification checks pass, click **Activate Workflow** in the top right.
2. Set the trigger to production values (scheduled frequency, webhook URL, or manual trigger as appropriate).
3. The workflow now runs automatically.

![graphql-step-9-test](https://ezintegrations.ai/wp-content/uploads/2026/04/graphql-step-9-test-1024x642.avif)

## Troubleshooting Common Issues

### Issue 1: “Unauthorized” or 401 Error on the Endpoint

**Symptom:** the GraphQL node returns HTTP 401 Unauthorized immediately on test run.

**Causes and fixes:**

Most 401 errors are one of three things: wrong authentication header name, expired token, or insufficient API scope.

**Check the header name.** Shopify uses `X-Shopify-Access-Token`, not `Authorization`. GitHub uses `Authorization: Bearer [token]`. Atlassian uses `Authorization: Basic [base64-encoded email:token]`. Confirm the exact header name in your API’s documentation.

**Check token expiry.** If you are using a short-lived OAuth access token rather than a long-lived API key, it may have expired. Re-run the OAuth token fetch in the connector settings. For production, configure OAuth 2.0 in eZintegrations so tokens are refreshed automatically.

**Check scope.** A read-only token cannot run mutations. A token without the `read_inventory` scope cannot access inventory data in Shopify. Review the access scopes in your API credential settings and add any missing ones.

![graphql-troubleshoot-401](https://ezintegrations.ai/wp-content/uploads/2026/04/graphql-troubleshoot-401-1024x749.avif)

### Issue 2: GraphQL Errors Array in the Response (HTTP 200 but Data Empty)

**Symptom:** the HTTP status is 200, but the `data` key in the response is null or empty, and there is an `errors` array.

**Causes and fixes:**

**Field name does not exist in the schema.** GraphQL validates your query against the schema before running it. If you typed `inventoryItem` but the correct field is `inventoryQuantity`, the query fails with a schema validation error.

Fix: open the API’s GraphQL explorer (Shopify has a built-in one in the Partner Dashboard; GitHub has the GraphQL Explorer at github.com/graphql/explorer) and verify the exact field names.

**Argument type mismatch.** If a query argument expects `ID!` but you passed a plain integer instead of a Global ID string (Shopify format: `gid://shopify/Product/12345`), the query fails with a type error.

Fix: check the variable types in the schema. Shopify Global IDs must be the full `gid://` string, not just the numeric portion.

**Insufficient field-level permissions.** Some fields require additional OAuth scopes even if the API access itself is authenticated. For example, Shopify’s customer email field requires the `read_customers` scope specifically, separate from general API access.

### Issue 3: Rate Limit Errors (429)

**Symptom:** the workflow runs successfully for the first few pages but starts returning 429 errors partway through a pagination loop.

**Causes and fixes:**

GraphQL APIs often have two rate limit mechanisms simultaneously: an HTTP request rate limit (number of requests per second) and a cost-based limit (Shopify uses a query cost system where complex queries with many nested fields consume more cost budget than simple queries).

**For HTTP rate limits:** the retry logic configured in Step 8 handles 429 automatically if the API returns a `Retry-After` header. Confirm the **Respect Retry-After header** toggle is enabled in your error handling configuration.

**For Shopify’s cost-based limits:** the response includes a `extensions.cost` object showing the actual cost, the available budget, and the restore rate. If your query cost is high, either simplify the query (request fewer fields, fewer nested levels), increase the time between pagination requests using a **Wait** node (set to 500ms-1000ms between pages), or split the query into separate smaller queries.

**For GitHub’s rate limits:** GitHub GraphQL has a rate limit of 5,000 points per hour. Run `query { rateLimit { limit remaining resetAt } }` to check your current usage.

### Issue 4: Mutations Return userErrors but HTTP 200

**Symptom:** your mutation appears to succeed (HTTP 200, no `errors` array), but the expected change does not appear in the destination system.

**Fix:** add logging to capture the full mutation response including the `userErrors` array after every mutation. The error is in `data.[mutationName].userErrors`, not in `errors` at the root level.

After adding the Condition node for `userErrors` (Step 6), also log the full response to a database or monitoring tool before the condition check. This gives you the raw response for debugging even if the condition check itself has an issue.

### Issue 5: Pagination Loop Hangs or Fetches Too Many Records

**Symptom:** the While Loop runs continuously or processes far more records than expected.

**Cause:** the cursor is not updating correctly between loop iterations, causing the loop to fetch the same first page repeatedly.

**Fix:** verify the **Set Variable** node that updates the cursor is receiving the correct path: `{{ nodes.graphql_node.output.data.products.pageInfo.endCursor }}`. Check the exact path matches your query structure, particularly the operation name (`products` vs `orders` vs `customers` depending on your query).

Also verify the cursor variable reference in the GraphQL node’s Variables panel uses the correct variable name: `{{ vars.cursor }}` must match the variable name set in the Set Variable node.

## FAQs

### How long does a GraphQL enterprise integration take to set up in eZintegrations?

Using an Automation Hub template: 5-15 minutes to import, enter credentials, and activate. Building manually from scratch: 25-45 minutes for a single query integration. Adding mutations, pagination, and error handling: 60-90 minutes total for a complete production-grade integration. The most time-consuming part is writing and testing the GraphQL query itself, not the eZintegrations configuration.

 

 

### Do I need coding skills to integrate a GraphQL API in eZintegrations?

No, but GraphQL query syntax knowledge helps. GraphQL queries use a readable, JSON-like syntax that non-developers can learn in 30 minutes. eZintegrations provides a syntax-highlighted query editor with schema validation and a field browser, which means you can discover available fields without reading the full API documentation. If you use an Automation Hub template for your specific system, the query is pre-written and you only need to configure credentials.

 

 

### Does eZintegrations support custom HTTP headers for GraphQL API integrations?

Yes, eZintegrations supports custom HTTP headers for GraphQL API integrations. In the GraphQL Connector, custom headers can be configured as key-value pairs alongside the API's authentication settings. This can be used for API version headers, application-specific headers, tenant identifiers, and other headers required by a GraphQL endpoint. Standard authentication and custom GraphQL request headers can therefore be managed within the same eZintegrations integration workflow.

 

 

### How does eZintegrations handle GraphQL subscriptions (real-time)?

GraphQL subscriptions use WebSocket connections for real-time data push. eZintegrations supports WebSocket connections natively for platforms that implement GraphQL subscriptions. Configure these using the WebSocket connector node rather than the GraphQL connector node. The query syntax is identical: use subscription instead of query. Note that most enterprise APIs (Shopify, GitHub) have moved away from GraphQL subscriptions in favour of webhook-based real-time notification, which is more reliable at scale.

 

 

### What is the difference between REST and GraphQL in eZintegrations workflows?

REST uses the REST Connector node with individual endpoints per operation. GraphQL uses the GraphQL Connector node with a single endpoint and operation-specific query bodies. For systems that offer both (GitHub, HubSpot), GraphQL is typically preferable for data retrieval because it eliminates over-fetching and reduces the number of API calls. REST is preferable for simple trigger-action integrations where the response structure is fixed and well-documented. eZintegrations supports both in the same workflow, so you can mix REST and GraphQL nodes as needed.

 

 

### What authentication methods does eZintegrations support for GraphQL API integrations?

eZintegrations can connect to GraphQL APIs that use common API authentication patterns such as API keys, Bearer tokens, OAuth 2.0, and authentication headers. Authentication is configured as part of the GraphQL connection so credentials can be reused securely by GraphQL queries and mutations within the workflow. For enterprise systems with application-specific authentication requirements, additional request headers can be configured alongside the primary authentication method.

 

 

### How does eZintegrations handle GraphQL pagination for large datasets?

eZintegrations can integrate with GraphQL APIs that return paginated datasets, including APIs that use cursor-based pagination. The workflow can use pagination values returned by the GraphQL response to request subsequent result sets until the required data has been retrieved. This allows enterprise integrations to process large GraphQL datasets without requiring a separate manually maintained integration for each page of results.

 

 

### Can eZintegrations connect to a custom or private GraphQL API?

Yes. eZintegrations can connect to custom and private GraphQL APIs as long as the GraphQL endpoint is accessible and the required authentication credentials are available. The GraphQL Connector can be configured with the endpoint, authentication, headers, queries, mutations, variables, and response mappings required by the API. This allows enterprises to integrate internally developed GraphQL services and proprietary applications in addition to third-party GraphQL APIs

 

 

### Why can a GraphQL API return HTTP 200 even when my integration has failed?

GraphQL can return an HTTP 200 response while still reporting errors inside the GraphQL response body. Because of this, checking only the HTTP status code is not sufficient for a production integration. An eZintegrations GraphQL workflow should inspect the response for GraphQL errors, application-level errors such as mutation userErrors, and missing or unexpected data before treating the operation as successful.

 

 

### How do I integrate a GraphQL API that uses cursor-based pagination?

Configure the GraphQL query to request the API's pagination fields, typically including a cursor and an indicator such as hasNextPage. The workflow uses the returned cursor as the starting point for the next request and continues until no additional page is available. This pattern is useful for enterprise GraphQL APIs that return large collections and cannot return the complete dataset in a single query.

 

 

 

## Conclusion

A production-grade GraphQL integration in eZintegrations covers nine steps: workflow creation, endpoint and authentication configuration, query writing, response inspection, field mapping with loop iteration, mutation setup with userErrors handling, cursor-based pagination, three-category error handling, and end-to-end testing.

The nine steps above represent the complete pattern. Once you have built one GraphQL integration, the next one takes a fraction of the time because the patterns are identical: authentication, query, paginate, map, handle errors.

If your target system is in the Automation Hub, you can skip to a working integration in under 5 minutes. If it is not, the manual path above produces a template you can reuse for every future workflow with that system.

**[Book a free demo](https://ezintegrations.ai/book-a-demo)**. Bring your API documentation and use case. The eZintegrations team will confirm whether an Automation Hub template exists, walk through the query structure for your specific system, and help you get your first integration live in the session.

For the broader workflow automation ROI framework, see the workflow automation[ ROI guide](https://ezintegrations.ai/workflow-automation-roi-enterprise-ipaas). For AI workflow automation layered on top of GraphQL integrations, see the AI workflow[ automation guide](https://ezintegrations.ai/ai-workflow-automation-vs-traditional-ipaas).

### **Enterprise Automation for the AI Era**

Automate business processes with Workflows, AI Workflows, AI Agents, and Agentic AI, all from one intelligent platform built for modern enterprises.



[Get Started](https://ezintegrations.ai/signup/)

## Topics

**Categories:** [AI Workflow](https://ezintegrations.ai/wp-content/uploads/wp-mfa-exports/taxonomy/category/ai-workflow.md), [Workflow Automation](https://ezintegrations.ai/wp-content/uploads/wp-mfa-exports/taxonomy/category/workflow-automation.md)