createEntitiesStep - Helper Steps API Reference
This documentation provides a reference to the createEntitiesStep
step. It belongs to the @medusajs/medusa/core-flows
package.
This step creates one or more entities using methods in a module's service.
Example#
Input#
CreateEntitiesStepType
CreateEntitiesStepType
CreateEntitiesStepType
CreateEntitiesStepTypemoduleRegistrationName
stringThe regitration name of the module that contains the method to be invoked.
moduleRegistrationName
stringinvokeMethod
stringThe method to be invoked.
invokeMethod
stringcompensateMethod
stringThe method to be invoked in case of compensation (when an error occurs).
compensateMethod
stringdata
any[]The data to pass to the invoke method.
For example, an array of objects to create.
data
any[]entityIdentifier
stringOptionalA string to pass to the compensate method.
entityIdentifier
stringOptionalOutput#
any[]
any[]
any[]
any[]any
any
any
anyWas this page helpful?