docs: update order promotion link details (#13023)
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -610,11 +610,11 @@ To retrieve the promotion applied on an order with [Query](!docs!/learn/fundamen
|
||||
const { data: orders } = await query.graph({
|
||||
entity: "order",
|
||||
fields: [
|
||||
"promotion.*",
|
||||
"promotions.*",
|
||||
],
|
||||
})
|
||||
|
||||
// orders[0].promotion
|
||||
// orders[0].promotions
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
@@ -628,11 +628,11 @@ import { useQueryGraphStep } from "@medusajs/medusa/core-flows"
|
||||
const { data: orders } = useQueryGraphStep({
|
||||
entity: "order",
|
||||
fields: [
|
||||
"promotion.*",
|
||||
"promotions.*",
|
||||
],
|
||||
})
|
||||
|
||||
// orders[0].promotion
|
||||
// orders[0].promotions
|
||||
```
|
||||
|
||||
</CodeTab>
|
||||
|
||||
Reference in New Issue
Block a user