Run GraphQL query
BetaChanges data
Runs any Carerix GraphQL query or mutation through a saved connection.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Carerix connection the step signs in with. |
| QueryRequired | A GraphQL query or mutation. Carerix's whole schema is at docs.carerix.io/graphql. Values from earlier nodes belong in Variables, not pasted into this text. |
| Variables | The variables object sent beside the query. Every value an earlier node produces belongs here. |
| Operation name | Only needed when the document holds more than one operation. |
| What this document does | A read may be re-run freely and is never confirmed. Choose the other one for any document holding a mutation: a mutation run twice can create two records. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `carerix`) |
query | textplain text, never `{{ }}` |
variables | object (any keys), by default {} |
operationName | text |
documentKind | "read" or "write", by default "read" |
Output
| Field | Type |
|---|---|
dataWhat Carerix answered | object |
Sample output, and the expression for each field
- data
- crEmployeePage
- totalElements137
- crEmployeePage
Errors
When a step of this node stops a run, the run page shows a code. Look it up:
Example step
The step as a flow file holds it. Replace each value in <…>.
{
"config": {
"connection": "<connection id>",
"documentKind": "read",
"operationName": "",
"query": "<query>",
"variables": {}
},
"label": "Run GraphQL query",
"type": "carerix.query",
"version": 1
}