GraphQL Resource Node

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

Properties

Base URL

PropbaseURL
Typestring
Defaultundefined

The base URL for the GraphQL API request.

Headers

Propheaders
Typearray
Default[ { 'key': 'Content-Type', 'value': 'application/json' } ]

The header values to use for the GraphQL API request.

Header

Propheaders[]
Typeobject

A key-value pair to attach to the headers of the request

Header key

Propheaders[].key
Typestring

The key of the header

Header value

Propheaders[].value
Typestring

The value of the specified header

Method

Propmethod
Typestring
DefaultPOST

The GraphQL request methods.

Query

Propquery
Typestring
Defaultquery { books { id, title } }

The content for the query.

Variables

Propvariables
Typeunknown
Default{}

Variable values for the query.

Health-check Query

ProphealthcheckQuery
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
pathstringundefined
querystringquery { books { id, title } }
variablesunknown{'n':10}
headersarray[ { 'key': 'Content-Type', 'value': 'application/json' }]
methodHTTPMethodTypes ("GET" | "POST" | "PUT" | "DELETE" | "OPTIONS")POST