Reference
Nodes
Resources
GraphQL

GraphQL Resource

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

Properties

Environment Profiles

Propprofiles
Typearray
Default[ { 'baseURL': '', 'headers': [ { 'key': 'Content-Type', 'value': 'application/json' } ], 'method': 'POST', 'query': 'query { books { id, title } }', 'variables': '{}', 'healthcheckQuery': 'query { books { id, title } }', 'environment': '' } ]

The profiles configured for this resource in an environment

Environment Profile

Propprofiles[]
Typeobject
Defaultundefined

A profile of this resource for an environment

Base URL

Propprofiles[].baseURL
Typestring
Defaultundefined

The base URL for the GraphQL API request.

Headers

Propprofiles[].headers
Typearray
Defaultundefined

The header values to use for the GraphQL API request.

Header

Propprofiles[].headers[]
Typeobject
Defaultundefined

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

Header key

Propprofiles[].headers[].key
Typestring
Defaultundefined

The key of the header

Header value

Propprofiles[].headers[].value
Typestring
Defaultundefined

The value of the specified header

Method

Propprofiles[].method
Typestring
Defaultundefined

The GraphQL request methods.

Query

Propprofiles[].query
Typestring
Defaultundefined

The content for the query.

Variables

Propprofiles[].variables
Typeunknown
Defaultundefined

Variable values for the query.

Health-check Query

Propprofiles[].healthcheckQuery
Typestring
Defaultundefined

Query for testing connection to server

Environment

Propprofiles[].environment
Typestring
Defaultundefined

The name of the environment with which this profile is associated

Actions

Perform GraphQL request

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

ParameterTypeDefault
querystringquery { __typename}
variablesunknown{}
headersarray[ { 'key': 'Content-Type', 'value': 'application/json' }]