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

Name
Type
Description

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 inventory

  • Repository - Storage location (warehouse, bin, pallet, etc.)

  • Stock - Inventory levels

  • ItemMovement - Movement of items between repositories

  • RepositoryMovement - Movement of entire repositories

  • Transaction - Inventory transaction records

  • InventoryCollection - Collection of inventory items

  • InventoryItemSet - 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:

Last updated

Was this helpful?