CANONICAL TYPE REFERENCE
WarehouseStockSortField
Field a warehouse stock listing can be ordered by.
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).
View exact SDL
"""Field a warehouse stock listing can be ordered by."""
enum WarehouseStockSortField {
"""
Order 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.
"""
STOCKABLE_TYPE
"""
Order 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.
"""
QUANTITY
"""
Order 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).
"""
CREATED_AT
}One stable address across all schema views. Follow a field’s type to explore connections between domains.