Query
query WorkflowRules {
workflowRules {
edges {
cursor
node {
id
name
payload
publishedAt {
__typename
}
order
createdAt {
__typename
}
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}Response
{
"data": {
"workflowRules": {
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"name": "string",
"payload": "string",
"publishedAt": {
"__typename": "DateTime"
},
"order": 1,
"createdAt": {
"__typename": "DateTime"
}
}
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
}
}
}
}Queries
workflowRules
List all workflow rules in the workspace, paginated. Rules are returned in their configured display order.
Use workflowRule to fetch a single rule by ID.
QUERY
workflowRules(first: Int, after: String, last: Int, before: String): WorkflowRuleConnection!Arguments
first
Int
after
String
last
Int
before
String
Returns
edges
[WorkflowRuleEdge!]!
pageInfo
Query
query WorkflowRules {
workflowRules {
edges {
cursor
node {
id
name
payload
publishedAt {
__typename
}
order
createdAt {
__typename
}
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}Response
{
"data": {
"workflowRules": {
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"name": "string",
"payload": "string",
"publishedAt": {
"__typename": "DateTime"
},
"order": 1,
"createdAt": {
"__typename": "DateTime"
}
}
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
}
}
}
}Was this page helpful?

