- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
getVariantsStep - Medusa Core Workflows Reference
This documentation provides a reference to the getVariantsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step retrieves variants matching the specified filters.
Example#
Input#
GetVariantsStepInput
GetVariantsStepInputThe details of the variants to retrieve.
GetVariantsStepInput
GetVariantsStepInputThe filters to apply on retrieved product variants.
An object that is used to configure how an entity is retrieved from the database. It accepts as a typed parameter an
Entity
class,
which provides correct typing of field names in its properties.
Entity
class,
which provides correct typing of field names in its properties.Output#
ProductVariantDTO[]
ProductVariantDTO[]
ProductVariantDTO[]
ProductVariantDTO[]ProductVariantDTO
ProductVariantDTOA product variant's data.
ProductVariantDTO
ProductVariantDTOWas this page helpful?