GraphQL Resource Node

The GraphQL Resource provides an easy way to connect to a GraphQL API of your choosing.

Properties

Base URL

PropgraphqlNode.baseURL
Typestring
Defaultundefined

The base URL for the GraphQL API request.

Headers

PropgraphqlNode.headers
TypeArray<{ key: string, value: string }>
Default[ { 'key': 'Content-Type', 'value': 'application/json' } ]

The header values to use for the GraphQL API request.

Method

PropgraphqlNode.method
Typestring
DefaultPOST

The GraphQL request methods.

Query

PropgraphqlNode.query
Typestring
Defaultquery { books { id, title } }

The content for the query.

Variables

PropgraphqlNode.variables
Typestring
Default{ n: 10 }

Variable values for the query.

Health-check Query

PropgraphqlNode.healthcheckQuery
Typestring
Defaultquery { books { id, title } }

Query for testing connection to server

Actions

Perform GraphQL request

Makes a GraphQL request over HTTP(S) to the specified API endpoint.

ParameterTypeDefault
pathstring``
querystringquery { books { id, title } }
variablesstring{ n: 10 }
headers(string | Array<{ key: string, value: string }>)[{ 'key': 'Content-Type', 'value': 'application/json' }]
methodstringPOST