Initial commit

Co-Authored-By: kotte <14197736+mrtamagotchi@users.noreply.github.com>
Co-Authored-By: mikaeltellhed <2311083+mikaeltellhed@users.noreply.github.com>
Co-Authored-By: Tore Knudsen <18231882+torekndsn@users.noreply.github.com>
Co-Authored-By: Michael Cartner <32543275+michaelcartner@users.noreply.github.com>
This commit is contained in:
Eric Tuvesson
2023-09-05 12:08:55 +02:00
commit 53f0d6320e
2704 changed files with 76354 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
---
title: GraphQL Query
hide_title: true
---
<##head##>
# GraphQL Query
This node enables you to connect to GraphQL based API:s in a quick and easy way.
![](/library/modules/graphql/graphql-guide-img/graphql-query-node.png)
<##head##>
## Inputs
**Query**
Input your GraphQL query in this field. Example: `{ hero { name } }`
**Endpoint**
A URL for the service that you are using.
**Results**
Click the plus button to define the name of the results array you want to receive from your query. If your query was `{ hero { name } }`, you would give your result the name `hero`.
**Request Headers**
Use this field to add any headers the GraphQL service requires.
Example:
```javascript
headers({ 'Content-Type': 'application/json', 'Accept': 'application/json', 'Authorization': 'Bearer f60e2ea4dcd07fbcdaef8c8cd8418e', })
```
**Fetch**
Send a signal to this input to execute your GraphQL query.
## Outputs
**Results**
This is a list of the results that were defined in the inputs. Each result will have the name that was defined in the inputs section and it will be an array of items.