Skip to main content
Modules in Mercur never reference each other directly. They’re connected through module links. The Product Attribute module links into Medusa’s product module in several ways: to products, to categories, and, for variant axes, to product options through mirror links. Once a link is defined, you retrieve related records with query.graph using the link alias.

Products

Categories

The mirror links (Attribute → option, Value → option value) and the product scope link (scoped_attributes) are read-only. They’re resolved from the FK on the owning record and can’t be written through the link itself. The workflows keep the mirror in sync when axis attributes and values change.