From 04886ea122b3820f113bf20be149b4e360cff299 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Mon, 8 Jul 2024 20:30:46 +0300 Subject: [PATCH] docs: rename property when defining a list link (#8017) * docs: rename property when defining a list link * added note about static directory * remove note about static directory --- .../app/advanced-development/modules/module-links/page.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/apps/book/app/advanced-development/modules/module-links/page.mdx b/www/apps/book/app/advanced-development/modules/module-links/page.mdx index a2dd9d86a1..deebd0fb84 100644 --- a/www/apps/book/app/advanced-development/modules/module-links/page.mdx +++ b/www/apps/book/app/advanced-development/modules/module-links/page.mdx @@ -95,16 +95,16 @@ import { defineLink } from "@medusajs/utils" export default defineLink( { - model: HelloModule.linkable.myCustom, + linkable: HelloModule.linkable.myCustom, isList: true }, ProductModule.linkable.product ) ``` -In this case, you pass an object of configuration as a parameter rather than the linked model. The object accepts the following properties: +In this case, you pass an object of configuration as a parameter instead. The object accepts the following properties: -- `model`: The data model to link. +- `linkable`: The data model's link configuration. - `isList`: Whether multiple records can be linked to one record of the other data model. In this example, a record of `product` can be linked to more than one record of `myCustom`.