Hi there!
I did set up a simple GraphQL node which is resulting into an error:
TypeError: _a.map is not a function
at Object.execute (/app/code/node_modules/n8n-nodes-base/dist/nodes/GraphQL/GraphQL.node.js:417:105)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Workflow.runNode (/app/code/node_modules/n8n-workflow/dist/Workflow.js:658:28)
at async /app/code/node_modules/n8n-core/dist/WorkflowExecute.js:585:53
The workflow:
The corresponding curl command delivered the expected respond:
curl -X POST \
https://subdomain.myshopify.com/admin/api/2022-10/graphql.json \
-H 'Content-Type: application/graphql' \
-H 'X-Shopify-Access-Token: shpat_4zb2587845189c3e00458f1ed7d4548gb' \
-d '{
order(id: "gid://shopify/Order/5208688066868") {
events(first: 100) {
edges {
node {
__typename
message
}
}
}
}
}'
Information on n8n setup
- n8n version: 0.203.1
- Running n8n via: Cloudron