docs: rename remoteLink and remoteQueryConfig (#10836)

* docs: rename remoteLink and remoteQueryConfig

* change version number
This commit is contained in:
Shahed Nasser authored and GitHub committed 2025-01-07 14:43:12 +02:00
1 parent f5f4d417c0
commit 38223e5104
28 files changed
+223 -212

No files matched your search

@@ -67,19 +67,19 @@ const { data: paymentCollections } = useQueryGraphStep({
</CodeTab>
</CodeTabs>
### Manage with Remote Link
### Manage with Link
To manage the payment collection of a cart, use [Remote Link](!docs!/learn/fundamentals/module-links/remote-link):
To manage the payment collection of a cart, use [Link](!docs!/learn/fundamentals/module-links/link):
<CodeTabs group="relation-link">
<CodeTab label="remoteLink.create" value="method">
<CodeTab label="link.create" value="method">
```ts
import { Modules } from "@medusajs/framework/utils"
// ...
await remoteLink.create({
await link.create({
[Modules.CART]: {
cart_id: "cart_123",
},
@@ -159,19 +159,19 @@ const { data: paymentCollections } = useQueryGraphStep({
</CodeTab>
</CodeTabs>
### Manage with Remote Link
### Manage with Link
To manage the payment collections of an order, use [Remote Link](!docs!/learn/fundamentals/module-links/remote-link):
To manage the payment collections of an order, use [Link](!docs!/learn/fundamentals/module-links/link):
<CodeTabs group="relation-link">
<CodeTab label="remoteLink.create" value="method">
<CodeTab label="link.create" value="method">
```ts
import { Modules } from "@medusajs/framework/utils"
// ...
await remoteLink.create({
await link.create({
[Modules.ORDER]: {
order_id: "order_123",
},
@@ -252,19 +252,19 @@ const { data: paymentProviders } = useQueryGraphStep({
</CodeTab>
</CodeTabs>
### Manage with Remote Link
### Manage with Link
To manage the payment providers in a region, use [Remote Link](!docs!/learn/fundamentals/module-links/remote-link):
To manage the payment providers in a region, use [Link](!docs!/learn/fundamentals/module-links/link):
<CodeTabs group="relation-link">
<CodeTab label="remoteLink.create" value="method">
<CodeTab label="link.create" value="method">
```ts
import { Modules } from "@medusajs/framework/utils"
// ...
await remoteLink.create({
await link.create({
[Modules.REGION]: {
region_id: "reg_123",
},
@@ -49,12 +49,12 @@ import {
// ...
// resolve the remote link
const remoteLink = container.resolve(
ContainerRegistrationKeys
// resolve Link
const link = container.resolve(
ContainerRegistrationKeys.LINK
)
remoteLink.create({
link.create({
[Modules.CART]: {
cart_id: "cart_123",
},
@@ -66,7 +66,7 @@ remoteLink.create({
<Note title="Tip">
Learn more about the remote link in [this documentation](!docs!/learn/fundamentals/module-links/remote-link).
Learn more about Link in [this documentation](!docs!/learn/fundamentals/module-links/link).
</Note>