- Home
- Resources
- Integrations
- GraphQL
GraphQL n8n integrationAutomate GraphQL with n8n.
Your data sits behind one GraphQL endpoint, and n8n knows how to ask it. The GraphQL n8n integration ships one operation: it sends your query and drops the answer into a property you name. No trigger comes with it, so a schedule or another tool starts the run. Made for schema readers.
Verified Trustpilot reviews · AI, automation & growth agency
What does the GraphQL n8n integration actually do?
A GraphQL endpoint answers exactly the query it receives, no more and no less, and the n8n node is the client that sends that query. You hand it the endpoint URL, the query text, and the name of the property that will hold the response. Every node placed after it reads that property like any other data. One operation, one resource, no menu to explore.
Start with a watch loop. A Schedule Trigger, the node that starts a workflow at a fixed interval, fires every hour, the node asks Product Hunt for the top 5 products of the moment, and the list goes out as a Discord message. Nobody opens a dashboard, the channel carries the update.
Then the bulk load, the kind you run once and forget. Product rows leave Google Sheets, the node sends one mutation per row to Shopify to create the product and set its inventory, and the sheet stays the place where the catalog is edited. Each answer comes back into the workflow under the property you named, so the execution keeps a record of what the API replied.
Third, a reporting feed. A single query pulls yesterday's figures in one round trip, the response lands in the named property, and the rows continue into Postgres or Supabase. GraphQL earns its place here because the query decides which fields travel, so the workflow carries nothing it will never read.
The node covers one operation, which is what a generic client looks like. For a REST endpoint on the same service, or for a call this node cannot express, the HTTP Request node reaches any URL and reuses the credential, the login saved once in n8n and reused across workflows, through its predefined authentication.
Two limits deserve a mention before you build. There is no GraphQL trigger, the node that would start a workflow on its own, so the run begins with a Schedule Trigger at a fixed interval, an n8n Webhook (a URL that an outside service calls) or the trigger of another tool. And the node has no Return All or Limit switch: how many items come back is decided by the query you send. For the wider picture, the n8n review looks at the platform itself, and n8n training covers building a workflow from the first node.
How do you connect GraphQL to n8n?
- 01
Match the authentication to the API
GraphQL is a query language, not a single service, so the node leaves authentication open. None suits a public endpoint. Header Auth or Query Auth fit an API that expects a token in a header or in the URL. Basic Auth and Digest Auth take a user and a password. OAuth1 and OAuth2 cover delegated access to an account, and Custom Auth handles the APIs that mix several of these. The API documentation settles it.
- 02
Save the credential once
A credential is the block of secrets n8n stores for you. Create it in the Credentials menu, give it a name you will still recognize in six months, and every workflow on the instance can use it. The GraphQL node then offers it in its dropdown. Rotating a token later means editing that one credential, not each node that calls the API.
- 03
Point the node at the endpoint
Paste the API URL into Endpoint, in the shape of
http://example.com/graphql. Set HTTP Request Method to GET or POST depending on what the API accepts, write a short query in Query, and run the node once. A readable answer under the property named in Response Data Property Name tells you the connection holds.
What the GraphQL node can do
The GraphQL node exposes one operation. For each one: the node as you configure it in n8n, the required fields, and our field notes.
Operations index
Makes a GraphQL request and returns the received data
executeWhat you see in n8n
Notes & use cases
The node sends one request to the endpoint you set and passes the answer to the next node, stored under the property name you chose.
Key parameters
- Endpoint: the URL that accepts the queries, in the shape of
http://example.com/graphql. - Request Format:
graphqlsends the query as raw text,jsonwraps it in a JSON body. - Query: the query itself, where the expression
{{ $json.id }}reads a value from the incoming item. - Response Data Property Name: the property that receives the response, and the name later nodes will read.
Need help automating GraphQL with n8n?
A person reads every message.
GraphQL and n8n: common questions
01Is the GraphQL n8n integration free?
02Which credentials does the GraphQL node need?
03What are the limits of the GraphQL node in n8n?
04Does the GraphQL node react in real time?
05n8n or Make for GraphQL?
Get our weekly integration tips.
No spam. Unsubscribe anytime.



