retrieve - Inventory Next Module Reference
This documentation provides a reference to the retrieve
method. This belongs to the Inventory Next Module.
This method retrieves an inventory item by its ID.
Example
A simple example that retrieves a inventory item by its ID:
To specify relations that should be retrieved:
Parameters
inventoryItemId
stringRequiredThe inventory item's ID.
config
FindConfig<InventoryItemDTO>The configurations determining how the inventory item is retrieved. Its properties, such as select
or relations
, accept the
attributes or relations associated with a inventory item.
config
FindConfig<InventoryItemDTO>select
or relations
, accept the
attributes or relations associated with a inventory item.context
ContextA context used to share resources, such as transaction manager, between the application and the module.
context
ContextReturns
The retrieved inventory item.
Was this section helpful?