Skip to content
Pyck docs

You are reading the Dev docs (main @ e991a08). They can differ from the released product.Dev docs, not the release

Switch to LatestLatest

InventoryItemStockTotals

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
inventory value type

Served by: inventory

Name Type Description
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.
lastChangedAt Time Latest createdAt over all current rows, virtual repositories included; null when the item has none.