Query
query WorkflowExecutions($workflowId: ID!) {
workflowExecutions(workflowId: $workflowId) {
edges {
cursor
node {
id
workflowId
workflow {
__typename
}
triggeredBy
executionStatus
errorMessage
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}Variables
{
"workflowId": "id"
}Response
{
"data": {
"workflowExecutions": {
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"workflowId": "id",
"workflow": {
"__typename": "Workflow"
},
"triggeredBy": "string",
"executionStatus": "QUEUED",
"errorMessage": "string"
}
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
}
}
}
}Queries
workflowExecutions
List executions for a specific workflow, paginated. Use this to audit the run history of a workflow and check for failures.
QUERY
workflowExecutions(workflowId: ID!, first: Int, after: String, last: Int, before: String): WorkflowExecutionConnection!Arguments
workflowId
ID!
required
first
Int
after
String
last
Int
before
String
Returns
edges
pageInfo
Query
query WorkflowExecutions($workflowId: ID!) {
workflowExecutions(workflowId: $workflowId) {
edges {
cursor
node {
id
workflowId
workflow {
__typename
}
triggeredBy
executionStatus
errorMessage
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}Variables
{
"workflowId": "id"
}Response
{
"data": {
"workflowExecutions": {
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"workflowId": "id",
"workflow": {
"__typename": "Workflow"
},
"triggeredBy": "string",
"executionStatus": "QUEUED",
"errorMessage": "string"
}
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
}
}
}
}Was this page helpful?

