createTags - Product Module Reference
BetaThis documentation provides a reference to the createTags method. This belongs to the Product Module.
This method is used to create product tags.
Example
import {
initialize as initializeProductModule,
} from "@medusajs/product"
async function createProductTags (values: string[]) {
const productModule = await initializeProductModule()
const productTags = await productModule.createTags(
values.map((value) => ({
value
}))
)
// do something with the product tags or return them
}
Parameters
The product tags to create.
Returns
The list of product tags.
Was this section helpful?