docs: rename remoteLink and remoteQueryConfig (#10836)
* docs: rename remoteLink and remoteQueryConfig * change version number
This commit is contained in:
1 parent
f5f4d417c0
commit
38223e5104
28 files changed
+223
-212
No files matched your search
@@ -671,7 +671,7 @@ You’ll test out the workflow in the next section.
|
||||
|
||||
- [How to Create a Workflow](!docs!/learn/fundamentals/workflows)
|
||||
- [What is the Compensation Function](!docs!/learn/fundamentals/workflows/compensation-function)
|
||||
- [Learn more about the remote link function](!docs!/learn/fundamentals/module-links/remote-link)
|
||||
- [Learn more about Link functions](!docs!/learn/fundamentals/module-links/link)
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -123,14 +123,14 @@ Create workflows to implement these flows, then utilize these workflows in other
|
||||
|
||||
## Manage Linked Records
|
||||
|
||||
If you've defined links between data models of two modules, you can manage them through two functions: remote link and Query.
|
||||
If you've defined links between data models of two modules, you can manage them through two tools: Link and Query.
|
||||
|
||||
Use the remote link to create a link between two records, and use Query to fetch data across linked data models.
|
||||
Use Link to create a link between two records, and use Query to fetch data across linked data models.
|
||||
|
||||
<CardList itemsPerRow={2} items={[
|
||||
{
|
||||
href: "!docs!/learn/fundamentals/module-links/remote-link",
|
||||
title: "How to Use the Remote Link",
|
||||
href: "!docs!/learn/fundamentals/module-links/link",
|
||||
title: "How to Use Link",
|
||||
text: "Learn how to link data models of different modules.",
|
||||
icon: AcademicCapSolid,
|
||||
},
|
||||
|
||||
@@ -682,7 +682,7 @@ export const POST = async (
|
||||
req: AuthenticatedMedusaRequest<RequestType>,
|
||||
res: MedusaResponse
|
||||
) => {
|
||||
const remoteLink = req.scope.resolve("remoteLink")
|
||||
const link = req.scope.resolve("link")
|
||||
const marketplaceModuleService: MarketplaceModuleService =
|
||||
req.scope.resolve(MARKETPLACE_MODULE)
|
||||
const productModuleService: IProductModuleService = req.scope
|
||||
@@ -725,7 +725,7 @@ const { result } = await createProductsWorkflow(req.scope)
|
||||
})
|
||||
|
||||
// link product to vendor
|
||||
await remoteLink.create({
|
||||
await link.create({
|
||||
[MARKETPLACE_MODULE]: {
|
||||
vendor_id: vendorAdmin.vendor.id,
|
||||
},
|
||||
@@ -826,7 +826,7 @@ curl 'http://localhost:9000/vendors/products' \
|
||||
### Further Reads
|
||||
|
||||
- [How to use Query](!docs!/learn/fundamentals/module-links/query)
|
||||
- [How to use the Remote Link](!docs!/learn/fundamentals/module-links/remote-link)
|
||||
- [How to use Link](!docs!/learn/fundamentals/module-links/link)
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -710,7 +710,7 @@ The workflow returns the created subscription and order.
|
||||
|
||||
- [How to Create a Workflow](!docs!/learn/fundamentals/workflows)
|
||||
- [Learn more about the compensation function](!docs!/learn/fundamentals/workflows/compensation-function)
|
||||
- [How to use the Remote Link](!docs!/learn/fundamentals/module-links/remote-link)
|
||||
- [How to use Link](!docs!/learn/fundamentals/module-links/link)
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in new issue
Block a user