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