Query
query Workflows {
workflows {
edges {
cursor
node {
id
name
trigger
startStepId
steps {
__typename
}
publishedAt {
__typename
}
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}Response
{
"data": {
"workflows": {
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"name": "string",
"trigger": "string",
"startStepId": "id",
"steps": [
{
"__typename": "WorkflowStep"
}
],
"publishedAt": {
"__typename": "DateTime"
}
}
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
}
}
}
}Queries
workflows
List workflows in the workspace, paginated. Use filters to narrow results by trigger type
(MANUAL, EVENTS or SCHEDULE), published status, or the events an events trigger listens for.
Ordered by position ascending unless sortBy says otherwise.
QUERY
workflows(first: Int, after: String, last: Int, before: String, filters: WorkflowsFilter, sortBy: WorkflowsSort): WorkflowConnection!Arguments
first
Int
after
String
last
Int
before
String
filters
sortBy
Returns
edges
[WorkflowEdge!]!
pageInfo
Query
query Workflows {
workflows {
edges {
cursor
node {
id
name
trigger
startStepId
steps {
__typename
}
publishedAt {
__typename
}
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}Response
{
"data": {
"workflows": {
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"name": "string",
"trigger": "string",
"startStepId": "id",
"steps": [
{
"__typename": "WorkflowStep"
}
],
"publishedAt": {
"__typename": "DateTime"
}
}
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
}
}
}
}Was this page helpful?

