nodeInventory
Fetches an object given its ID.
Served by: inventory
Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
id |
ID! | ID of the object. |
Returns
Section titled “Returns”Example
Section titled “Example”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>"}