NodeInventory
nodeInventory Query
Audience: Programmer
Fetches an inventory-related object given its ID. This query follows the Relay Global Object Identification Specification and can retrieve any object that implements the NodeInventory interface.
Arguments
id
ID!
The unique identifier of the inventory object to retrieve
Return Type
NodeInventory - An interface that returns an object implementing the NodeInventory interface. This includes:
InventoryItem- Product or item in inventoryRepository- Storage location (warehouse, bin, pallet, etc.)Stock- Inventory levelsItemMovement- Movement of items between repositoriesRepositoryMovement- Movement of entire repositoriesTransaction- Inventory transaction recordsInventoryCollection- Collection of inventory itemsInventoryItemSet- Set of related inventory items
Usage Example
GraphQL Query
Query Variables
JavaScript Example
Type Detection
Use the __typename field to determine which specific type was returned:
Related
Last updated
Was this helpful?
