updateTypes - Product Module Reference
BetaThis documentation provides a reference to the updateTypes method. This belongs to the Product Module.
This method is used to update a product type
Example
import {
initialize as initializeProductModule,
} from "@medusajs/product"
async function updateProductType (id: string, value: string) {
const productModule = await initializeProductModule()
const productTypes = await productModule.updateTypes([
{
id,
value
}
])
// do something with the product types or return them
}
Parameters
The product types to be updated, each having the attributes that should be updated in the product type.
Returns
The list of updated product types.
Was this section helpful?