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
@@ -198,7 +198,7 @@ For example, assuming you have the [Order, Product, and OrderProduct models from
class HelloModuleService extends MedusaService({
Order,
Product,
OrderProduct
OrderProduct,
}) {}
```
@@ -212,16 +212,16 @@ const orderProduct = await helloModuleService.createOrderProducts({
order_id: "123",
product_id: "123",
metadata: {
test: true
}
test: true,
},
})
// update order-product association
const orderProduct = await helloModuleService.updateOrderProducts({
id: "123",
metadata: {
test: false
}
test: false,
},
})
// delete order-product association