API queries data from GraphQL
Needs changesWhat this workflow does
This workflow has 4 nodes and runs when an HTTP GET request hits its webhook URL. Along the way it connects GraphQL.
How it runs
Trigger: When an HTTP GET request hits its webhook URL.
- GraphQL: uses GraphQL
- Function: runs custom JavaScript (legacy Function node)
- Set (Edit Fields (Set)): sets or maps fields
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- Function (legacy) in Function: replace with Code node, mode 'Run Once for All Items'.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2019 — 25% of templates published before 2025 need changes for 3.0. See how template age affects 3.0 readiness →
| Removed in 3.0 | Replace with |
|---|---|
| Function (legacy) Function | Code node, mode 'Run Once for All Items' |
Nodes used (4)
- GraphQL
n8n-nodes-base.graphql - Function
n8n-nodes-base.function - Edit Fields (Set)
n8n-nodes-base.set - Webhook
n8n-nodes-base.webhook
From the author
Simpe API which queries the received country code via GraphQL and returns it. Example URL: https://n8n.exampl.ecom/webhook/1/webhook/webhook?code=DE 1. Receives country code from an incoming HTTP Request 1. Reads data via GraphQL 1. Converts the data to JSON…