GraphQL node thowring ERROR: _a.map is not a function

i was getting below error in graphql node

TypeError: _a.map is not a function
    at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/GraphQL/GraphQL.node.js:462:101)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:730:19)
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:662:53
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1064:20

however the same flow is working previous n8n cloud instance.

the current version is 1.29.1.
please check this

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @Rohit_Mali

Please don’t forget to include the graphql query and/or the workflow.

1 Like

{
  products(first: 55 query: "sku:VOLRBM23261 OR sku:HARBM02 ") {
    edges {
      node {
        id
        title
        variants (first: 2) {
          edges {
            node {
              sku
              inventoryItem {
                inventoryLevels(first: 1) {
                  edges {
                    node {
                      available
                      location {
                        name
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

above was the query i used

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.