Skip to content

Graphql

Node: graphql · Full type: n8n-nodes-base.graphql · Version: 1.1

Credentials

httpBasicAuth (alias: @http) / httpCustomAuth (alias: @http) / httpDigestAuth (alias: @http) / httpHeaderAuth (alias: @http) / httpQueryAuth (alias: @http) / oAuth1Api (alias: @oauth) / oAuth2Api (alias: @oauth)

CREDENTIAL @http = httpBasicAuth "My Graphql"

Parameters

Parameter Type Default Details
authentication options "none" basicAuth, customAuth, digestAuth, headerAuth, none, oAuth1, oAuth2, queryAuth
requestMethod options "POST" GET, POST
endpoint string "" required
allowUnauthorizedCerts boolean false
requestFormat options "graphql" required; graphql, json
query string "" required
variables json ""
operationName string ""
responseFormat options "json" json, string
dataPropertyName string "data" required
headerParametersUi fixedCollection {} groups: parameter

headerParametersUi children:

parameter group:

Parameter Type Default Details
name string ""
value string ""

Example

NODE "graphql" @http AS "Graphql" {
  endpoint: {{ $json.endpoint }},
  query: {{ $json.query }},
  dataPropertyName: {{ $json.dataPropertyName }}
}