Loading...
Was this page helpful?
This documentation provides a reference to the restoreProducts
method. This belongs to the Product Module.
This method is used to restore products which were deleted using the softDelete method.
productIds
string[]returnLinkableKeys
property any of the product's relation attribute names, such as variant_id
.Promise
Promise<void | Record<string, string[]>>variant_id
, and its value is an array of strings, each being the ID of the record associated with the product through this relation, such as the IDs of associated product variants.
If there are no related records that were restored, the promise resolved to void
.