Loading...
Was this page helpful?
This documentation provides a reference to the createCollectionsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step creates one or more collection.
1import { createWorkflow } from "@medusajs/framework/workflows-sdk"2import { createCollectionsStep } from "@medusajs/medusa/core-flows"3 4const myWorkflow = createWorkflow(5 "my-workflow",6 () => {7 const data = createCollectionsStep([{8 "title": "necessitatibus"9 }])10 }11)
CreateProductCollectionDTO[]
CreateProductCollectionDTO[]title
stringhandle
stringOptionalproduct_ids
string[]OptionalProductCollectionDTO[]
ProductCollectionDTO[]id
stringtitle
stringhandle
stringcreated_at
string | Dateupdated_at
string | Datedeleted_at
string | DateOptional