upsertTypes - Product Module Reference
This documentation provides a reference to the upsertTypes
method. This belongs to the Product Module.
upsertTypes(data, sharedContext?): Promise<ProductTypeDTO[]>
This method updates existing types, or creates new ones if they don't exist.
Example
Parameters
The attributes to update or create for each type.
Returns
The updated and created types.
upsertTypes(data, sharedContext?): Promise<ProductTypeDTO>
This method updates an existing type, or creates a new one if it doesn't exist.
Example
Parameters
The attributes to update or create for the type.
Returns
The updated or created type.
Was this section helpful?