# pickingOrders

Audience: Developer

**Served by:** [picking](https://docs.pyck.cloud/dev/api/services/picking.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` | [PickingOrderOrder](https://docs.pyck.cloud/dev/api/inputs/pickingorderorder.md) | Ordering options for PickingOrders returned from the connection. |
| `where` | [PickingOrderWhereInput](https://docs.pyck.cloud/dev/api/inputs/pickingorderwhereinput.md) | Filtering options for PickingOrders returned from the connection. |

## Returns

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

## Example

Queries picking orders with pagination and ordering.

```graphql
query GetPickingOrders($after: Cursor, $first: Int, $before: Cursor, $last: Int, $orderBy: PickingOrderOrder, $where: PickingOrderWhereInput) {
  pickingOrders(after: $after, first: $first, before: $before, last: $last, orderBy: $orderBy, where: $where) {
    totalCount
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
    edges {
      cursor
      node {
        createdAt
        createdBy
        customerID
        data
        dataTypeID
        dataTypeSlug
        deletedAt
        deletedBy
        id
        tenantID
        updatedAt
        updatedBy
      }
    }
  }
}
```

**Variables**

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