|
11 ヶ月 前 | |
---|---|---|
.. | ||
README.md | 11 ヶ月 前 |
A module link forms an association between two data models of different modules, while maintaining module isolation.
For example:
import HelloModule from "../modules/hello"
import ProductModule from "@medusajs/medusa/product"
import { defineLink } from "@medusajs/framework/utils"
export default defineLink(
ProductModule.linkable.product,
HelloModule.linkable.myCustom
)
This defines a link between the Product Module's product
data model and the Hello Module (custom module)'s myCustom
data model.
Learn more about links in this documentation