Skip to content

nodeInventory

Fetches an object given its ID.

Served by: inventory

Name Type Description
id ID! ID of the object.

NodeInventory

Fetches one inventory item by its global ID. The inline fragment selects the InventoryItem fields; the lookup returns null when no object has that ID.

query GetNodeInventory($id: ID!) {
nodeInventory(id: $id) {
id
... on InventoryItem {
tenantID
sku
dataTypeSlug
data
createdAt
}
}
}

Variables

{
"id": "<inventory item ID>"
}