GraphQL Resource Node
The GraphQL Resource provides an easy way to connect to a GraphQL API of your choosing.
Properties
Base URL
Prop | graphqlNode.baseURL |
---|---|
Type | string |
Default | undefined |
The base URL for the GraphQL API request.
Headers
Prop | graphqlNode.headers |
---|---|
Type | Array<{ key: string, value: string }> |
Default | [ { 'key': 'Content-Type', 'value': 'application/json' } ] |
The header values to use for the GraphQL API request.
Method
Prop | graphqlNode.method |
---|---|
Type | string |
Default | POST |
The GraphQL request methods.
Query
Prop | graphqlNode.query |
---|---|
Type | string |
Default | query { books { id, title } } |
The content for the query.
Variables
Prop | graphqlNode.variables |
---|---|
Type | string |
Default | { n: 10 } |
Variable values for the query.
Health-check Query
Prop | graphqlNode.healthcheckQuery |
---|---|
Type | string |
Default | query { 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.
Parameter | Type | Default |
---|---|---|
path | string | `` |
query | string | query { books { id, title } } |
variables | string | { n: 10 } |
headers | (string | Array<{ key: string, value: string }>) | [{ 'key': 'Content-Type', 'value': 'application/json' }] |
method | string | POST |