retrieveOption - Product Module Reference
This documentation provides a reference to the retrieveOption
method. This belongs to the Product Module.
This method is used to retrieve a product option by its ID.
Example
A simple example that retrieves a product option by its ID:
To specify relations that should be retrieved:
Parameters
optionId
stringRequiredThe ID of the product option to retrieve.
config
FindConfig<ProductOptionDTO>The configurations determining how the product option is retrieved. Its properties, such as select
or relations
, accept the
attributes or relations associated with a product option.
config
FindConfig<ProductOptionDTO>select
or relations
, accept the
attributes or relations associated with a product option.Returns
The retrieved product option.
Was this section helpful?