Skip to content
Pyck docs

InventoryItemStockTotals

Since pyck v0.27.0

An item’s stock totals. Current means the same as in itemstocks: the highest version per repository, a deleted head hides its pair, rows whose stock values are all zero do not count.

Service Key Implements
inventory value type
Name Type Arguments Description Served by Deprecated
quantity Int64! Sum of quantity over the current rows at non-virtual root repositories. A
root’s quantity is the rollup of its whole subtree, so this counts every
unit the item holds in physical repositories once.
inventory
lastChangedAt Time Latest createdAt over all current rows, virtual repositories included; null when the item has none. inventory