WarehouseStockSortInput
One ordering instruction for listWarehouseStocks. Only the first entry of the sort list is applied.
Fields
Field to order the stock records by.
Possible values (3)
STOCKABLE_TYPEOrder by the stored stockable-type discriminator (INK, SUBSTRATE, …), which groups the page by kind of item rather than by the item itself; the record's TypeID breaks ties within a kind.
QUANTITYOrder numerically by the quantity on hand. That is total stock, not availableQuantity, so reserved stock still counts towards a record's position. Records in different units are compared as bare numbers.
CREATED_ATOrder by when the stock record was first created — not when it was last counted or last transacted. This is what the query falls back to when no sort is given, paired with DESC (newest first).
Order direction (ASC or DESC) applied to field.
Possible values (2)
ASCSort in ascending order (A-Z, oldest first)
DESCSort in descending order (Z-A, newest first)
Referenced by (1)
Exact type SDL
"""
One ordering instruction for `listWarehouseStocks`. Only the first entry of the sort list is applied.
"""
input WarehouseStockSortInput {
"""Field to order the stock records by."""
field: WarehouseStockSortField!
"""Order direction (ASC or DESC) applied to `field`."""
direction: SortDirection!
}