Skip to main content
The Product Attribute module exposes a service you can resolve from the Medusa container to read and write records directly, without going through a workflow. Use it inside custom services, subscribers, or scheduled jobs.

Generated methods

Each data model gets a standard set of auto-generated methods. For ProductAttribute: The same set exists for ProductAttributeValue: createProductAttributeValues, retrieveProductAttributeValue, listProductAttributeValues, listAndCountProductAttributeValues, updateProductAttributeValues, and deleteProductAttributeValues.
Prefer workflows for anything with side effects, such as creating an axis attribute, attaching attributes to a product, or keeping the mirror ProductOption in sync. The service writes records directly and does not emit events, maintain the option mirror, or run compensation.