What is the primary function of the GraphQL Tool node in n8n?
This node allows you to perform complex GraphQL operations, such as queries and mutations, to interact with various API Integrations directly within your workflow.
How does the GraphQL Tool execute operations?
It sends HTTP POST requests containing the defined GraphQL query or mutation to the specified endpoint. It functions as a standard workflow node, processing input data and providing structured output.
Can I dynamically inject data into my GraphQL queries?
Yes. You can use input data from previous nodes to define variables for your queries and mutations, ensuring dynamic and context-aware Integrations across your workflow.
Does the GraphQL Tool support authentication?
Absolutely. You can configure authentication headers or credentials directly within the node settings, which is crucial when connecting to secure APIs that require a token or trigger key.
Is the GraphQL Tool ever used as a trigger?
Generally, no. While it performs actions (Queries/Mutations), the GraphQL Tool is primarily an execution node. You would typically use a separate webhook or listening node as the initial trigger for a GraphQL-based workflow.