Menu
GraphQL Query
Execute a GraphQL query or mutation against a GraphQL endpoint
Use it in a workflow
- Add a step and choose the GraphQL connector.
- Pick the GraphQL Query action (under graphql).
- Fill in the fields below, then reference the result from later steps as
{{graphqlQuery.response.data}}.
Fields
Examples
Query with variables
Fetch a user by id using a GraphQL variable
{
"url": "https://api.example.com/graphql",
"query": "query GetUser($id: ID!) {\n user(id: $id) {\n id\n name\n email\n }\n}",
"variables": "{\"id\": \"123\"}",
"operationName": "GetUser"
}
Need more? See the GraphQL guide for connection setup and behaviour shared by every action.
Was this page helpful?