# workflows

Audience: Developer

**Served by:** [workflow](https://docs.pyck.cloud/dev/api/services/workflow.md)

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `after` | [Cursor](https://docs.pyck.cloud/dev/api/scalars/cursor.md) | Returns the elements in the list that come after the specified cursor. |
| `first` | Int | Returns the first _n_ elements from the list. |
| `before` | [Cursor](https://docs.pyck.cloud/dev/api/scalars/cursor.md) | Returns the elements in the list that come before the specified cursor. |
| `last` | Int | Returns the last _n_ elements from the list. |
| `orderBy` | [WorkflowOrder](https://docs.pyck.cloud/dev/api/inputs/workfloworder.md) | Ordering options for Workflows returned from the connection. |
| `where` | [WorkflowWhereInput](https://docs.pyck.cloud/dev/api/inputs/workflowwhereinput.md) | Filtering options for Workflows returned from the connection. |

## Returns

[WorkflowConnection](https://docs.pyck.cloud/dev/api/types/workflowconnection.md)!

## Example

Lists registered workflow definitions with pagination and ordering.

```graphql
query GetWorkflows($after: Cursor, $first: Int, $before: Cursor, $last: Int, $orderBy: WorkflowOrder, $where: WorkflowWhereInput) {
  workflows(after: $after, first: $first, before: $before, last: $last, orderBy: $orderBy, where: $where) {
    totalCount
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
    edges {
      cursor
      node {
        createdAt
        createdBy
        data
        dataTypeID
        dataTypeSlug
        deletedAt
        deletedBy
        id
        name
        taskQueue
        tenantID
        updatedAt
        updatedBy
      }
    }
  }
}
```

**Variables**

```json
{
  "first": 10,
  "orderBy": {
    "direction": "ASC",
    "field": "CREATED_AT"
  }
}
```
