StockRecord
object type
Carries only the three locatable buckets (reserved is a claim overlay, in_transit is not physically here — both stay on the item caches); quantities are non-negative (a relocate refuses driving a record negative — CONFLICT/INSUFFICIENT_STOCK). The derived un-binned pool = item caches minus the record sums (see verifyInventoryItem). Records persist at zero; a zeroed record does NOT block its bin.
Fields
| Field | Type | Notes |
|---|---|---|
inventoryItemId | ID ID! | The owning InventoryItem. |
binId | ID ID! | The Bin holding this shard. |
lotCode | String | The lot identity. |
lotExpiresAt | String | The lot expiry (UTC instant) — birth-stamped; a later mismatch refuses; a record missing it is enriched by the next lotted relocate that supplies one. |
onHandQty | String String! | |
damagedQty | String String! | |
heldQty | String String! | |
createdAt | String String! | |
updatedAt | String String! | |
revisionNum | Int Int! |