docs: updates to link to other modules docs (#12225)
This commit is contained in:
@@ -20,12 +20,12 @@ With the Medusa Framework, you can focus your efforts on building meaningful bus
|
||||
|
||||
Using the Medusa Framework, you can build customizations like:
|
||||
|
||||
- Product Reviews
|
||||
- Deep integration with an ERP system.
|
||||
- CMS integration with seamless content retrieval.
|
||||
- Custom item pricing in the cart.
|
||||
- Automated restock notifications.
|
||||
- Re-usable payment provider integrations.
|
||||
- [Product Reviews](!resources!/how-to-tutorials/tutorials/product-reviews)
|
||||
- [Deep integration with an ERP system](!resources!/recipes/erp)
|
||||
- [CMS integration with seamless content retrieval](!resources!/integrations/guides/sanity)
|
||||
- [Custom item pricing in the cart](!resources!/examples/guides/custom-item-price)
|
||||
- [Automated restock notifications](!resources!/recipes/commerce-automation/restock-notification)
|
||||
- [Re-usable payment provider integrations](!resources!/references/payment/provider)
|
||||
|
||||
### Framework Concepts and Tools
|
||||
|
||||
|
||||
@@ -119,5 +119,5 @@ export const generatedEditDates = {
|
||||
"app/learn/production/worker-mode/page.mdx": "2025-03-11T15:21:50.906Z",
|
||||
"app/learn/fundamentals/module-links/read-only/page.mdx": "2025-03-21T09:14:54.944Z",
|
||||
"app/learn/fundamentals/data-models/properties/page.mdx": "2025-03-18T07:57:17.826Z",
|
||||
"app/learn/fundamentals/framework/page.mdx": "2025-04-16T14:39:59.724Z"
|
||||
"app/learn/fundamentals/framework/page.mdx": "2025-04-17T16:07:19.090Z"
|
||||
}
|
||||
+16400
-16400
File diff suppressed because it is too large
Load Diff
@@ -38,7 +38,7 @@ The API Key Module has the following links to other modules:
|
||||
[SalesChannel](/references/sales-channel/models/SalesChannel) in [Sales Channel Module](../../sales-channel/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - many-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#sales-channel-module)
|
||||
@@ -74,7 +74,7 @@ const { data: apiKeys } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// apiKeys.sales_channels
|
||||
// apiKeys[0].sales_channels
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -92,7 +92,7 @@ const { data: apiKeys } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// apiKeys.sales_channels
|
||||
// apiKeys[0].sales_channels
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
|
||||
@@ -44,7 +44,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[Customer](/references/customer/models/Customer) in [Customer Module](../../customer/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Read-only
|
||||
Read-only - has one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#customer-module)
|
||||
@@ -58,7 +58,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[Cart](/references/cart/models/Cart)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - one-to-one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#order-module)
|
||||
@@ -72,7 +72,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[PaymentCollection](/references/payment/models/PaymentCollection) in [Payment Module](../../payment/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - one-to-one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#payment-module)
|
||||
@@ -86,7 +86,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[Product](/references/product/models/Product) in [Product Module](../../product/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Read-only
|
||||
Read-only - has one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#product-module)
|
||||
@@ -100,7 +100,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[ProductVariant](/references/product/models/ProductVariant) in [Product Module](../../product/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Read-only
|
||||
Read-only - has one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#product-module)
|
||||
@@ -114,7 +114,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[Promotion](/references/promotion/models/Promotion) in [Promotion Module](../../promotion/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - many-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#promotion-module)
|
||||
@@ -128,7 +128,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[Region](/references/region/models/Region) in [Region Module](../../region/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Read-only
|
||||
Read-only - has one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#region-module)
|
||||
@@ -142,7 +142,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[SalesChannel](/references/sales-channel/models/SalesChannel) in [Sales Channel Module](../../sales-channel/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Read-only
|
||||
Read-only - has one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#sales-channel-module)
|
||||
@@ -174,7 +174,7 @@ const { data: carts } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// carts.order
|
||||
// carts[0].customer
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -192,7 +192,7 @@ const { data: carts } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// carts.order
|
||||
// carts[0].customer
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -223,7 +223,7 @@ const { data: carts } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// carts.order
|
||||
// carts[0].order
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -241,7 +241,7 @@ const { data: carts } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// carts.order
|
||||
// carts[0].order
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -316,7 +316,7 @@ const { data: carts } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// carts.payment_collection
|
||||
// carts[0].payment_collection
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -334,7 +334,7 @@ const { data: carts } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// carts.payment_collection
|
||||
// carts[0].payment_collection
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -470,7 +470,7 @@ const { data: carts } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// carts.promotions
|
||||
// carts[0].promotions
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -488,7 +488,7 @@ const { data: carts } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// carts.promotions
|
||||
// carts[0].promotions
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -559,7 +559,7 @@ const { data: carts } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// carts.region
|
||||
// carts[0].region
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -577,7 +577,7 @@ const { data: carts } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// carts.region
|
||||
// carts[0].region
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -604,7 +604,7 @@ const { data: carts } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// carts.sales_channel
|
||||
// carts[0].sales_channel
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -622,7 +622,7 @@ const { data: carts } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// carts.sales_channel
|
||||
// carts[0].sales_channel
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
|
||||
@@ -38,13 +38,13 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
<Table.Body>
|
||||
<Table.Row>
|
||||
<Table.Cell>
|
||||
[Store](/references/store/models/Store) in [Store Module](../../store/page.mdx)
|
||||
[StoreCurrency](/references/store/models/StoreCurrency) in [Store Module](../../store/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Currency](/references/currency/models/Currency)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Read-only
|
||||
Read-only - has one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#store-module)
|
||||
@@ -58,7 +58,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
|
||||
The Store Module has a `Currency` data model that stores the supported currencies of a store. However, these currencies don't hold all the details of a currency, such as its name or symbol.
|
||||
|
||||
Instead, Medusa defines a read-only link between the [Store Module](../../store/page.mdx)'s `Currency` data model and the Currency Module's `Currency` data model. Because the link is read-only from the `Store`'s side, you can only retrieve the details of a store's supported currencies, and not the other way around.
|
||||
Instead, Medusa defines a read-only link between the [Store Module](../../store/page.mdx)'s `StoreCurrency` data model and the Currency Module's `Currency` data model. Because the link is read-only from the `Store`'s side, you can only retrieve the details of a store's supported currencies, and not the other way around.
|
||||
|
||||
### Retrieve with Query
|
||||
|
||||
@@ -75,7 +75,7 @@ const { data: stores } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// stores.supported_currencies
|
||||
// stores[0].supported_currencies[0].currency
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -93,7 +93,7 @@ const { data: stores } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// stores.supported_currencies
|
||||
// stores[0].supported_currencies[0].currency
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
|
||||
@@ -44,7 +44,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[AccountHolder](/references/payment/models/AccountHolder) in [Payment Module](../../payment/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - many-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#payment-module)
|
||||
@@ -58,7 +58,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[Customer](/references/customer/models/Customer)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Read-only
|
||||
Read-only - has one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#cart-module)
|
||||
@@ -72,7 +72,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[Customer](/references/customer/models/Customer)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Read-only
|
||||
Read-only - has one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#order-module)
|
||||
@@ -105,11 +105,11 @@ To retrieve the account holder associated with a customer with [Query](!docs!/le
|
||||
const { data: customers } = await query.graph({
|
||||
entity: "customer",
|
||||
fields: [
|
||||
"account_holders.*",
|
||||
"account_holder_link.account_holder.*",
|
||||
],
|
||||
})
|
||||
|
||||
// customers.account_holders
|
||||
// customers[0].account_holder_link?.[0]?.account_holder
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -123,11 +123,11 @@ import { useQueryGraphStep } from "@medusajs/medusa/core-flows"
|
||||
const { data: customers } = useQueryGraphStep({
|
||||
entity: "customer",
|
||||
fields: [
|
||||
"account_holders.*",
|
||||
"account_holder_link.account_holder.*",
|
||||
],
|
||||
})
|
||||
|
||||
// customers.account_holders
|
||||
// customers[0].account_holder_link?.[0]?.account_holder
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
|
||||
+14
-14
@@ -38,7 +38,7 @@ The Fulfillment Module has the following links to other modules:
|
||||
[Fulfillment](/references/fulfillment/models/Fulfillment)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - one-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#order-module)
|
||||
@@ -52,7 +52,7 @@ The Fulfillment Module has the following links to other modules:
|
||||
[Fulfillment](/references/fulfillment/models/Fulfillment)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - one-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#order-module)
|
||||
@@ -66,7 +66,7 @@ The Fulfillment Module has the following links to other modules:
|
||||
[ShippingOption](/references/fulfillment/models/ShippingOption)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - many-to-one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#pricing-module)
|
||||
@@ -80,7 +80,7 @@ The Fulfillment Module has the following links to other modules:
|
||||
[ShippingProfile](/references/fulfillment/models/ShippingProfile)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - many-to-one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#product-module)
|
||||
@@ -94,7 +94,7 @@ The Fulfillment Module has the following links to other modules:
|
||||
[FulfillmentProvider](/references/fulfillment/models/FulfillmentProvider)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - one-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#stock-location-module)
|
||||
@@ -108,7 +108,7 @@ The Fulfillment Module has the following links to other modules:
|
||||
[FulfillmentSet](/references/fulfillment/models/FulfillmentSet)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - one-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#stock-location-module)
|
||||
@@ -241,11 +241,11 @@ To retrieve the price set of a shipping option with [Query](!docs!/learn/fundame
|
||||
const { data: shippingOptions } = await query.graph({
|
||||
entity: "shipping_option",
|
||||
fields: [
|
||||
"price_set.*",
|
||||
"price_set_link.*",
|
||||
],
|
||||
})
|
||||
|
||||
// shippingOptions.price_set
|
||||
// shippingOptions[0].price_set_link?.price_set_id
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -259,11 +259,11 @@ import { useQueryGraphStep } from "@medusajs/medusa/core-flows"
|
||||
const { data: shippingOptions } = useQueryGraphStep({
|
||||
entity: "shipping_option",
|
||||
fields: [
|
||||
"price_set.*",
|
||||
"price_set_link.*",
|
||||
],
|
||||
})
|
||||
|
||||
// shippingOptions.price_set
|
||||
// shippingOptions[0].price_set_link?.price_set_id
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -340,7 +340,7 @@ const { data: shippingProfiles } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// shippingProfiles.products
|
||||
// shippingProfiles[0].products
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -358,7 +358,7 @@ const { data: shippingProfiles } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// shippingProfiles.products
|
||||
// shippingProfiles[0].products
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -443,7 +443,7 @@ const { data: fulfillmentSets } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// fulfillmentSets.location
|
||||
// fulfillmentSets[0].location
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -461,7 +461,7 @@ const { data: fulfillmentSets } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// fulfillmentSets.location
|
||||
// fulfillmentSets[0].location
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
|
||||
@@ -44,7 +44,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[InventoryItem](/references/inventory/models/InventoryItem)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - many-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#product-module)
|
||||
@@ -58,7 +58,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[StockLocation](/references/stock-location/models/StockLocation) in [Stock Location Module](../../stock-location/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Read-only
|
||||
Read-only - has many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#stock-location-module)
|
||||
@@ -98,7 +98,7 @@ const { data: inventoryItems } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// inventoryItems.variants
|
||||
// inventoryItems[0].variants
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -116,7 +116,7 @@ const { data: inventoryItems } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// inventoryItems.variants
|
||||
// inventoryItems[0].variants
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -187,7 +187,7 @@ const { data: inventoryLevels } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// inventoryLevels.stock_locations
|
||||
// inventoryLevels[0].stock_locations
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -205,7 +205,7 @@ const { data: inventoryLevels } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// inventoryLevels.stock_locations
|
||||
// inventoryLevels[0].stock_locations
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
|
||||
@@ -44,7 +44,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[Customer](/references/customer/models/Customer) in [Customer Module](../../customer/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Read-only
|
||||
Read-only - has one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#customer-module)
|
||||
@@ -58,7 +58,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[Cart](/references/cart/models/Cart) in [Cart Module](../../cart/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - one-to-one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#cart-module)
|
||||
@@ -72,7 +72,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[Fulfillment](/references/fulfillment/models/Fulfillment) in [Fulfillment Module](../../fulfillment/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - one-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#fulfillment-module)
|
||||
@@ -86,7 +86,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[Fulfillment](/references/fulfillment/models/Fulfillment) in [Fulfillment Module](../../fulfillment/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - one-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#fulfillment-module)
|
||||
@@ -100,7 +100,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[PaymentCollection](/references/payment/models/PaymentCollection) in [Payment Module](../../payment/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - one-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#payment-module)
|
||||
@@ -114,7 +114,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[PaymentCollection](/references/payment/models/PaymentCollection) in [Payment Module](../../payment/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - one-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#payment-module)
|
||||
@@ -128,7 +128,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[PaymentCollection](/references/payment/models/PaymentCollection) in [Payment Module](../../payment/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - one-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#payment-module)
|
||||
@@ -136,13 +136,13 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
</Table.Row>
|
||||
<Table.Row>
|
||||
<Table.Cell>
|
||||
[Order](/references/order/models/Order)
|
||||
[OrderLineItem](/references/order/models/OrderLineItem)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Product](/references/product/models/Product) in [Product Module](../../product/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Read-only
|
||||
Read-only - has many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#product-module)
|
||||
@@ -156,7 +156,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[Promotion](/references/promotion/models/Promotion) in [Promotion Module](../../promotion/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - many-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#promotion-module)
|
||||
@@ -170,7 +170,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[Region](/references/region/models/Region) in [Region Module](../../region/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Read-only
|
||||
Read-only - has one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#region-module)
|
||||
@@ -184,7 +184,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[SalesChannel](/references/sales-channel/models/SalesChannel) in [Sales Channel Module](../../sales-channel/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Read-only
|
||||
Read-only - has one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#sales-channel-module)
|
||||
@@ -214,7 +214,7 @@ const { data: orders } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// orders.customer
|
||||
// orders[0].customer
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -232,7 +232,7 @@ const { data: orders } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// orders.customer
|
||||
// orders[0].customer
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -263,7 +263,7 @@ const { data: orders } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// orders.cart
|
||||
// orders[0].cart
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -281,7 +281,7 @@ const { data: orders } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// orders.cart
|
||||
// orders[0].cart
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -364,7 +364,7 @@ const { data: orders } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// orders.fulfillments
|
||||
// orders[0].fulfillments
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -382,7 +382,7 @@ const { data: orders } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// orders.fulfillments
|
||||
// orders[0].fulfillments
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -457,7 +457,7 @@ const { data: orders } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// orders.payment_collections
|
||||
// orders[0].payment_collections
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -475,7 +475,7 @@ const { data: orders } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// orders.payment_collections
|
||||
// orders[0].payment_collections
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -602,7 +602,7 @@ const { data: orders } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// orders.promotion
|
||||
// orders[0].promotion
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -620,7 +620,7 @@ const { data: orders } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// orders.promotion
|
||||
// orders[0].promotion
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -691,7 +691,7 @@ const { data: orders } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// orders.region
|
||||
// orders[0].region
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -709,7 +709,7 @@ const { data: orders } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// orders.region
|
||||
// orders[0].region
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -736,7 +736,7 @@ const { data: orders } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// orders.sales_channel
|
||||
// orders[0].sales_channel
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -754,7 +754,7 @@ const { data: orders } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// orders.sales_channel
|
||||
// orders[0].sales_channel
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
|
||||
@@ -38,7 +38,7 @@ The Payment Module has the following links to other modules:
|
||||
[PaymentCollection](/references/payment/models/PaymentCollection)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - one-to-one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#cart-module)
|
||||
@@ -52,7 +52,7 @@ The Payment Module has the following links to other modules:
|
||||
[AccountHolder](/references/payment/models/AccountHolder)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - many-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#customer-module)
|
||||
@@ -66,7 +66,7 @@ The Payment Module has the following links to other modules:
|
||||
[PaymentCollection](/references/payment/models/PaymentCollection)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - one-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#order-module)
|
||||
@@ -80,7 +80,7 @@ The Payment Module has the following links to other modules:
|
||||
[PaymentCollection](/references/payment/models/PaymentCollection)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - one-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#order-module)
|
||||
@@ -94,7 +94,7 @@ The Payment Module has the following links to other modules:
|
||||
[PaymentCollection](/references/payment/models/PaymentCollection)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - one-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#order-module)
|
||||
@@ -108,7 +108,7 @@ The Payment Module has the following links to other modules:
|
||||
[PaymentProvider](/references/payment/models/PaymentProvider)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - many-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#region-module)
|
||||
@@ -142,7 +142,7 @@ const { data: paymentCollections } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// paymentCollections.cart
|
||||
// paymentCollections[0].cart
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -160,7 +160,7 @@ const { data: paymentCollections } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// paymentCollections.cart
|
||||
// paymentCollections[0].cart
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -236,7 +236,7 @@ const { data: accountHolders } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// accountHolders.customer
|
||||
// accountHolders[0].customer
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -254,7 +254,7 @@ const { data: accountHolders } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// accountHolders.customer
|
||||
// accountHolders[0].customer
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -328,7 +328,7 @@ const { data: paymentCollections } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// paymentCollections.order
|
||||
// paymentCollections[0].order
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -346,7 +346,7 @@ const { data: paymentCollections } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// paymentCollections.order
|
||||
// paymentCollections[0].order
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -421,7 +421,7 @@ const { data: paymentProviders } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// paymentProviders.regions
|
||||
// paymentProviders[0].regions
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -439,7 +439,7 @@ const { data: paymentProviders } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// paymentProviders.regions
|
||||
// paymentProviders[0].regions
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
|
||||
@@ -38,7 +38,7 @@ The Pricing Module has the following links to other modules:
|
||||
[PriceSet](/references/pricing/models/PriceSet)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - one-to-one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#fulfillment-module)
|
||||
@@ -52,7 +52,7 @@ The Pricing Module has the following links to other modules:
|
||||
[PriceSet](/references/pricing/models/PriceSet)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - one-to-one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#product-module)
|
||||
@@ -86,7 +86,7 @@ const { data: priceSets } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// priceSets.shipping_option
|
||||
// priceSets[0].shipping_option
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -104,7 +104,7 @@ const { data: priceSets } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// priceSets.shipping_option
|
||||
// priceSets[0].shipping_option
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -183,7 +183,7 @@ const { data: priceSets } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// priceSets.variant
|
||||
// priceSets[0].variant
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -201,7 +201,7 @@ const { data: priceSets } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// priceSets.variant
|
||||
// priceSets[0].variant
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
|
||||
@@ -38,13 +38,13 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
<Table.Body>
|
||||
<Table.Row>
|
||||
<Table.Cell>
|
||||
[Cart](/references/cart/models/Cart) in [Cart Module](../../cart/page.mdx)
|
||||
[LineItem](/references/cart/models/LineItem) in [Cart Module](../../cart/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Product](/references/product/models/Product)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Read-only
|
||||
Read-only - has one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#cart-module)
|
||||
@@ -58,7 +58,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[ShippingProfile](/references/fulfillment/models/ShippingProfile) in [Fulfillment Module](../../fulfillment/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - many-to-one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#fulfillment-module)
|
||||
@@ -72,7 +72,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[InventoryItem](/references/inventory/models/InventoryItem) in [Inventory Module](../../inventory/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - many-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#inventory-module)
|
||||
@@ -80,13 +80,13 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
</Table.Row>
|
||||
<Table.Row>
|
||||
<Table.Cell>
|
||||
[Order](/references/order/models/Order) in [Order Module](../../order/page.mdx)
|
||||
[OrderLineItem](/references/order/models/OrderLineItem) in [Order Module](../../order/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Product](/references/product/models/Product)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Read-only
|
||||
Read-only - has one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#order-module)
|
||||
@@ -100,7 +100,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[PriceSet](/references/pricing/models/PriceSet) in [Pricing Module](../../pricing/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - one-to-one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#pricing-module)
|
||||
@@ -114,7 +114,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[SalesChannel](/references/sales-channel/models/SalesChannel) in [Sales Channel Module](../../sales-channel/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - many-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#sales-channel-module)
|
||||
@@ -153,7 +153,7 @@ const { data: lineItems } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// lineItems.variant
|
||||
// lineItems[0].variant
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -171,7 +171,7 @@ const { data: lineItems } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// lineItems.variant
|
||||
// lineItems[0].variant
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -204,7 +204,7 @@ const { data: products } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// products.shipping_profile
|
||||
// products[0].shipping_profile
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -222,7 +222,7 @@ const { data: products } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// products.shipping_profile
|
||||
// products[0].shipping_profile
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -305,7 +305,7 @@ const { data: variants } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// variants.inventory_items
|
||||
// variants[0].inventory_items
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -323,7 +323,7 @@ const { data: variants } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// variants.inventory_items
|
||||
// variants[0].inventory_items
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -403,7 +403,7 @@ const { data: lineItems } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// lineItems.variant
|
||||
// lineItems[0].variant
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -421,7 +421,7 @@ const { data: lineItems } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// lineItems.variant
|
||||
// lineItems[0].variant
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -454,7 +454,7 @@ const { data: variants } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// variants.price_set
|
||||
// variants[0].price_set
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -472,7 +472,7 @@ const { data: variants } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// variants.price_set
|
||||
// variants[0].price_set
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -547,7 +547,7 @@ const { data: products } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// products.sales_channels
|
||||
// products[0].sales_channels
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -565,7 +565,7 @@ const { data: products } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// products.sales_channels
|
||||
// products[0].sales_channels
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
|
||||
@@ -44,7 +44,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[Promotion](/references/promotion/models/Promotion)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - many-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#cart-module)
|
||||
@@ -58,7 +58,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[Promotion](/references/promotion/models/Promotion)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Read-only
|
||||
Read-only - has one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#cart-module)
|
||||
@@ -72,7 +72,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[Promotion](/references/promotion/models/Promotion)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - many-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#order-module)
|
||||
@@ -112,7 +112,7 @@ const { data: promotions } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// promotions.carts
|
||||
// promotions[0].carts
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -130,7 +130,7 @@ const { data: promotions } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// promotions.carts
|
||||
// promotions[0].carts
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -203,7 +203,7 @@ const { data: promotions } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// promotions.orders
|
||||
// promotions[0].orders
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -221,7 +221,7 @@ const { data: promotions } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// promotions.orders
|
||||
// promotions[0].orders
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
|
||||
@@ -44,7 +44,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[Region](/references/region/models/Region)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Read-only
|
||||
Read-only - has one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#cart-module)
|
||||
@@ -58,7 +58,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[Region](/references/region/models/Region)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Read-only
|
||||
Read-only - has one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#order-module)
|
||||
@@ -72,7 +72,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[PaymentProvider](/references/payment/models/PaymentProvider) in [Payment Module](../../payment/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - many-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#payment-module)
|
||||
@@ -102,7 +102,7 @@ const { data: carts } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// carts.region
|
||||
// carts[0].region
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -120,7 +120,7 @@ const { data: carts } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// carts.region
|
||||
// carts[0].region
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -147,7 +147,7 @@ const { data: orders } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// orders.region
|
||||
// orders[0].region
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -165,7 +165,7 @@ const { data: orders } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// orders.region
|
||||
// orders[0].region
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -196,7 +196,7 @@ const { data: regions } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// regions.payment_providers
|
||||
// regions[0].payment_providers
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -214,7 +214,7 @@ const { data: regions } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// regions.payment_providers
|
||||
// regions[0].payment_providers
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
|
||||
+13
-13
@@ -44,7 +44,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[SalesChannel](/references/sales-channel/models/SalesChannel)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - many-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#api-key-module)
|
||||
@@ -58,7 +58,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[SalesChannel](/references/sales-channel/models/SalesChannel)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Read-only
|
||||
Read-only - has one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#cart-module)
|
||||
@@ -72,7 +72,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[SalesChannel](/references/sales-channel/models/SalesChannel)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Read-only
|
||||
Read-only - has one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#order-module)
|
||||
@@ -86,7 +86,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[SalesChannel](/references/sales-channel/models/SalesChannel)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - many-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#product-module)
|
||||
@@ -100,7 +100,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[StockLocation](/references/stock-location/models/StockLocation) in [Stock Location Module](../../stock-location/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - many-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#stock-location-module)
|
||||
@@ -134,7 +134,7 @@ const { data: salesChannels } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// salesChannels.publishable_api_keys
|
||||
// salesChannels[0].publishable_api_keys
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -152,7 +152,7 @@ const { data: salesChannels } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// salesChannels.publishable_api_keys
|
||||
// salesChannels[0].publishable_api_keys
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -223,7 +223,7 @@ const { data: carts } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// carts.sales_channel
|
||||
// carts[0].sales_channel
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -241,7 +241,7 @@ const { data: carts } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// carts.sales_channel
|
||||
// carts[0].sales_channel
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -317,7 +317,7 @@ const { data: salesChannels } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// salesChannels.products
|
||||
// salesChannels[0].products
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -335,7 +335,7 @@ const { data: salesChannels } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// salesChannels.products
|
||||
// salesChannels[0].products
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -410,7 +410,7 @@ const { data: salesChannels } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// salesChannels.stock_locations
|
||||
// salesChannels[0].stock_locations
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -428,7 +428,7 @@ const { data: salesChannels } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// salesChannels.stock_locations
|
||||
// salesChannels[0].stock_locations
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
|
||||
+11
-11
@@ -44,7 +44,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[StockLocation](/references/stock-location/models/StockLocation)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - many-to-one
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#fulfillment-module)
|
||||
@@ -58,7 +58,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[StockLocation](/references/stock-location/models/StockLocation)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - many-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#fulfillment-module)
|
||||
@@ -66,13 +66,13 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
</Table.Row>
|
||||
<Table.Row>
|
||||
<Table.Cell>
|
||||
[Inventory](/references/inventory/models/Inventory) in [Inventory Module](../../inventory/page.mdx)
|
||||
[InventoryLevel](/references/inventory/models/InventoryLevel) in [Inventory Module](../../inventory/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[StockLocation](/references/stock-location/models/StockLocation)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Read-only - has many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#inventory-module)
|
||||
@@ -86,7 +86,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
[StockLocation](/references/stock-location/models/StockLocation)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Stored
|
||||
Stored - many-to-many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#sales-channel-module)
|
||||
@@ -130,7 +130,7 @@ const { data: stockLocations } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// stockLocations.fulfillment_sets
|
||||
// stockLocations[0].fulfillment_sets
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -148,7 +148,7 @@ const { data: stockLocations } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// stockLocations.fulfillment_sets
|
||||
// stockLocations[0].fulfillment_sets
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -219,7 +219,7 @@ const { data: inventoryLevels } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// inventoryLevels.stock_locations
|
||||
// inventoryLevels[0].stock_locations
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -237,7 +237,7 @@ const { data: inventoryLevels } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// inventoryLevels.stock_locations
|
||||
// inventoryLevels[0].stock_locations
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -268,7 +268,7 @@ const { data: stockLocations } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// stockLocations.sales_channels
|
||||
// stockLocations[0].sales_channels
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -286,7 +286,7 @@ const { data: stockLocations } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// stockLocations.sales_channels
|
||||
// stockLocations[0].sales_channels
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
|
||||
@@ -38,13 +38,13 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
<Table.Body>
|
||||
<Table.Row>
|
||||
<Table.Cell>
|
||||
[Store](/references/store/models/Store)
|
||||
[StoreCurrency](/references/store/models/StoreCurrency)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Currency](/references/currency/models/Currency) in [Currency Module](../../currency/page.mdx)
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
Read-only
|
||||
Read-only - has many
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
[Learn more](#currency-module)
|
||||
@@ -59,7 +59,7 @@ Read-only links are used to query data across modules, but the relations aren't
|
||||
|
||||
The Store Module has a `Currency` data model that stores the supported currencies of a store. However, these currencies don't hold all the details of a currency, such as its name or symbol.
|
||||
|
||||
Instead, Medusa defines a read-only link between the [Currency Module](../../currency/page.mdx)'s `Currency` data model and the Store Module's `Currency` data model. This means you can retrieve the details of a store's supported currencies, but you don't manage the links in a pivot table in the database. The currencies of a store are determined by the `currency_code` of the [Currency](/references/store/models/Currency) data model in the Store Module (not in the Currency Module).
|
||||
Instead, Medusa defines a read-only link between the [Currency Module](../../currency/page.mdx)'s `Currency` data model and the Store Module's `StoreCurrency` data model. This means you can retrieve the details of a store's supported currencies, but you don't manage the links in a pivot table in the database. The currencies of a store are determined by the `currency_code` of the [Currency](/references/store/models/Currency) data model in the Store Module (not in the Currency Module).
|
||||
|
||||
### Retrieve with Query
|
||||
|
||||
@@ -76,7 +76,7 @@ const { data: stores } = await query.graph({
|
||||
],
|
||||
})
|
||||
|
||||
// stores.supported_currencies
|
||||
// stores[0].supported_currencies
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -94,7 +94,7 @@ const { data: stores } = useQueryGraphStep({
|
||||
],
|
||||
})
|
||||
|
||||
// stores.supported_currencies
|
||||
// stores[0].supported_currencies
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
|
||||
@@ -2105,21 +2105,21 @@ export const generatedEditDates = {
|
||||
"app/admin-components/components/forms/page.mdx": "2024-10-09T12:48:04.229Z",
|
||||
"app/commerce-modules/auth/reset-password/page.mdx": "2025-04-17T08:29:01.697Z",
|
||||
"app/storefront-development/customers/reset-password/page.mdx": "2025-03-27T14:46:51.424Z",
|
||||
"app/commerce-modules/api-key/links-to-other-modules/page.mdx": "2025-04-17T08:48:15.961Z",
|
||||
"app/commerce-modules/api-key/links-to-other-modules/page.mdx": "2025-04-17T15:39:39.374Z",
|
||||
"app/commerce-modules/cart/extend/page.mdx": "2024-12-25T12:48:59.149Z",
|
||||
"app/commerce-modules/cart/links-to-other-modules/page.mdx": "2025-04-17T08:48:27.142Z",
|
||||
"app/commerce-modules/cart/links-to-other-modules/page.mdx": "2025-04-17T15:40:03.112Z",
|
||||
"app/commerce-modules/customer/extend/page.mdx": "2024-12-25T15:54:37.789Z",
|
||||
"app/commerce-modules/fulfillment/links-to-other-modules/page.mdx": "2025-04-17T08:48:18.671Z",
|
||||
"app/commerce-modules/inventory/links-to-other-modules/page.mdx": "2025-04-17T08:48:24.291Z",
|
||||
"app/commerce-modules/pricing/links-to-other-modules/page.mdx": "2025-04-17T08:48:28.484Z",
|
||||
"app/commerce-modules/fulfillment/links-to-other-modules/page.mdx": "2025-04-17T15:48:37.373Z",
|
||||
"app/commerce-modules/inventory/links-to-other-modules/page.mdx": "2025-04-17T15:49:56.087Z",
|
||||
"app/commerce-modules/pricing/links-to-other-modules/page.mdx": "2025-04-17T15:55:36.098Z",
|
||||
"app/commerce-modules/product/extend/page.mdx": "2024-12-11T09:07:25.252Z",
|
||||
"app/commerce-modules/product/links-to-other-modules/page.mdx": "2025-04-17T08:48:20.042Z",
|
||||
"app/commerce-modules/product/links-to-other-modules/page.mdx": "2025-04-17T15:58:21.559Z",
|
||||
"app/commerce-modules/promotion/extend/page.mdx": "2024-12-11T09:07:24.137Z",
|
||||
"app/commerce-modules/promotion/links-to-other-modules/page.mdx": "2025-04-17T08:48:13.200Z",
|
||||
"app/commerce-modules/promotion/links-to-other-modules/page.mdx": "2025-04-17T15:59:11.667Z",
|
||||
"app/commerce-modules/order/edit/page.mdx": "2025-02-26T11:24:28.852Z",
|
||||
"app/commerce-modules/order/links-to-other-modules/page.mdx": "2025-04-17T08:48:13.934Z",
|
||||
"app/commerce-modules/order/links-to-other-modules/page.mdx": "2025-04-17T15:57:52.146Z",
|
||||
"app/commerce-modules/order/order-change/page.mdx": "2024-10-09T09:59:40.745Z",
|
||||
"app/commerce-modules/payment/links-to-other-modules/page.mdx": "2025-04-17T08:48:10.982Z",
|
||||
"app/commerce-modules/payment/links-to-other-modules/page.mdx": "2025-04-17T15:53:23.515Z",
|
||||
"references/core_flows/Common/Steps_Common/functions/core_flows.Common.Steps_Common.useQueryGraphStep/page.mdx": "2025-04-11T09:04:35.943Z",
|
||||
"references/core_flows/Payment/Workflows_Payment/functions/core_flows.Payment.Workflows_Payment.processPaymentWorkflow/page.mdx": "2025-03-04T13:33:44.884Z",
|
||||
"references/helper_steps/functions/helper_steps.useQueryGraphStep/page.mdx": "2025-01-17T16:43:22.242Z",
|
||||
@@ -2167,10 +2167,10 @@ export const generatedEditDates = {
|
||||
"references/fulfillment/interfaces/fulfillment.IFulfillmentModuleService/page.mdx": "2024-12-17T16:57:25.097Z",
|
||||
"references/types/CommonTypes/interfaces/types.CommonTypes.RequestQueryFields/page.mdx": "2024-12-09T13:21:32.865Z",
|
||||
"references/utils/utils.ProductUtils/page.mdx": "2025-02-24T10:48:43.141Z",
|
||||
"app/commerce-modules/region/links-to-other-modules/page.mdx": "2025-04-17T08:48:23.504Z",
|
||||
"app/commerce-modules/sales-channel/links-to-other-modules/page.mdx": "2025-04-17T08:48:21.417Z",
|
||||
"app/commerce-modules/stock-location/links-to-other-modules/page.mdx": "2025-04-17T08:48:25.729Z",
|
||||
"app/commerce-modules/store/links-to-other-modules/page.mdx": "2025-04-17T08:48:33.388Z",
|
||||
"app/commerce-modules/region/links-to-other-modules/page.mdx": "2025-04-17T15:59:34.123Z",
|
||||
"app/commerce-modules/sales-channel/links-to-other-modules/page.mdx": "2025-04-17T16:00:09.483Z",
|
||||
"app/commerce-modules/stock-location/links-to-other-modules/page.mdx": "2025-04-17T16:02:51.467Z",
|
||||
"app/commerce-modules/store/links-to-other-modules/page.mdx": "2025-04-17T16:03:16.419Z",
|
||||
"app/examples/page.mdx": "2025-04-17T08:50:17.036Z",
|
||||
"app/medusa-cli/commands/build/page.mdx": "2024-11-11T11:00:49.665Z",
|
||||
"app/js-sdk/page.mdx": "2025-03-28T09:50:07.617Z",
|
||||
@@ -5723,8 +5723,8 @@ export const generatedEditDates = {
|
||||
"app/commerce-modules/store/admin-widget-zones/page.mdx": "2024-12-24T08:46:28.646Z",
|
||||
"app/commerce-modules/tax/admin-widget-zones/page.mdx": "2024-12-24T08:47:13.176Z",
|
||||
"app/commerce-modules/user/admin-widget-zones/page.mdx": "2024-12-24T08:48:14.186Z",
|
||||
"app/commerce-modules/currency/links-to-other-modules/page.mdx": "2025-04-17T08:48:29.866Z",
|
||||
"app/commerce-modules/customer/links-to-other-modules/page.mdx": "2025-04-17T08:48:31.197Z",
|
||||
"app/commerce-modules/currency/links-to-other-modules/page.mdx": "2025-04-17T15:40:23.148Z",
|
||||
"app/commerce-modules/customer/links-to-other-modules/page.mdx": "2025-04-17T15:43:54.168Z",
|
||||
"app/commerce-modules/fulfillment/events/page.mdx": "2024-12-31T09:37:49.253Z",
|
||||
"app/commerce-modules/payment/events/page.mdx": "2024-12-31T09:41:56.582Z",
|
||||
"references/core_flows/Payment/Steps_Payment/functions/core_flows.Payment.Steps_Payment.refundPaymentsStep/page.mdx": "2025-04-11T09:04:40.443Z",
|
||||
|
||||
Reference in New Issue
Block a user