The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.
TypeScript b2b-marketplacecomposable-commerceecommerceenterpriseheadless-commercemarketplacemedusamedusajsmulti-vendortypescript
Module Links
A module link forms an association between two data models of different modules, while maintaining module isolation.
Learn more about links in this documentation
For example:
import BlogModule from "../modules/blog"
import ProductModule from "@medusajs/medusa/product"
import { defineLink } from "@medusajs/framework/utils"
export default defineLink(
ProductModule.linkable.product,
BlogModule.linkable.post
)
This defines a link between the Product Module's product data model and the Blog Module (custom module)'s post data model.
Then, in the Medusa application, run the following command to sync the links to the database:
npx medusa db:migrate