docs: added plugins documentation (#10989)

(Should be merged after the next release)

Closes DX-1294
This commit is contained in:
Shahed Nasser
2025-01-27 09:32:53 +00:00
committed by GitHub
parent 0c5f21e893
commit c26ef84cae
26 changed files with 2901 additions and 52 deletions
@@ -212,7 +212,7 @@ So, the `RestockModuleService` class now has methods like `createRestockSubscrip
<Note>
Find all methods generated by the `MedusaService` in [this reference](../../..//service-factory-reference/page.mdx).
Find all methods generated by the `MedusaService` in [this reference](../../../service-factory-reference/page.mdx).
</Note>
@@ -330,7 +330,7 @@ You define a link using `defineLink` from the Modules SDK. It accepts three para
1. The first data model part of the link, which is the Restock Module's `restockSubscription` data model. A module has a special `linkable` property that contain link configurations for its data models. You also specify the field that points to the product variant.
1. The second data model part of the link, which is the Product Module's `productVariant` data model.
3. An object of configurations for the module link. By default, Medusa creates a table in the database to represent the link you define. However, in this guide, you only want this link to retrieve the variants associated with a subscription and vice-versa. So, you enable `readOnly` telling Medusa not to create a table for this link.
3. An object of configurations for the module link. By default, Medusa creates a table in the database to represent the link you define. However, in this guide, you only want this link to retrieve the variants associated with a subscription. So, you enable `readOnly` telling Medusa not to create a table for this link.
In the next steps, you'll see how this link allows you to retrieve product variants' details when retrieving restock subscriptions.