Templates / API queries data from GraphQL

API queries data from GraphQL

Needs changes

by Jan Oberhauser ✓ · 5,243 views · created 2019-12-17 · Engineering

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Function (legacy). 1 breaking item(s) found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What 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.

  1. GraphQL: uses GraphQL
  2. Function: runs custom JavaScript (legacy Function node)
  3. Set (Edit Fields (Set)): sets or maps fields

Services it uses

GraphQL

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.0Replace with
Function (legacy)
Function
Code node, mode 'Run Once for All Items'

Nodes used (4)

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…

Excerpt from Jan Oberhauser's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.