Modules.PRODUCT key to read and
write products, variants, categories, and collections directly, without going
through a workflow. Use it inside custom services, subscribers, or scheduled jobs.
Because this is Medusa’s own module, the service key is
Modules.PRODUCT from
@medusajs/framework/utils, not a MercurModules key. Mercur adds its
marketplace behavior (allowlist, review lifecycle, audit trail) as
workflows layered on top of this
service.Generated methods
Each data model gets a standard set of auto-generated methods. ForProduct:
The same set exists for every model in the module, such as
ProductVariant,
ProductCategory, ProductCollection, ProductTag, and ProductType (e.g.
createProductVariants, listProductCategories, updateProductCollections).