Picking Orders

pickingOrders Query

Returns a paginated list of PickingOrder objects, with optional filtering and ordering.

Arguments

Name
Type
Description

after

Cursor

Returns the elements in the list that come after the specified cursor

first

Int

Returns the first n elements from the list

before

Cursor

Returns the elements in the list that come before the specified cursor

last

Int

Returns the last n elements from the list

orderBy

PickingOrderOrder

Ordering options for PickingOrders returned from the connection

where

PickingOrderWhereInput

Filtering options for PickingOrders returned from the connection

Return Type

PickingOrderConnection! - A connection to a list of PickingOrder objects with pagination information.

Notes

The data field contains custom order attributes as JSON. You can use the Data, DataHasKey, DataIn, and DataContains filters to query based on JSON content. For complex JSON field queries, see Advanced JSON Field Queries.

Usage Example

query {
  pickingOrders(
    first: 10,
    orderBy: { direction: DESC, field: CREATED_AT },
    where: {
      customerID: "550e8400-e29b-41d4-a716-446655440000"
    }
  ) {
    edges {
      node {
        id
        customerID
        data
        orderitems {
          sku
          quantity
          item {
            data
          }
        }
        attachments {
          id
          filename
        }
        createdAt
      }
      cursor
    }
    pageInfo {
      hasNextPage
      endCursor
    }
    totalCount
  }
}

Last updated

Was this helpful?