updateTags - Product Module Reference
BetaThis documentation provides a reference to the updateTags method. This belongs to the Product Module.
This method is used to update existing product tags.
Example
import {
initialize as initializeProductModule,
} from "@medusajs/product"
async function updateProductTag (id: string, value: string) {
const productModule = await initializeProductModule()
const productTags = await productModule.updateTags([
{
id,
value
}
])
// do something with the product tags or return them
}
Parameters
The product tags to be updated, each having the attributes that should be updated in a product tag.
sharedContext
ContextA context used to share resources, such as transaction manager, between the application and the module.
sharedContext
ContextReturns
The list of updated product tags.
Was this section helpful?