docs: update order promotion link details (#13023)
This commit is contained in:
1 parent
394226b5c1
commit
bac106116b
2 files changed
+3250
-8
No files matched your search
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({
|
const { data: orders } = await query.graph({
|
||||||
entity: "order",
|
entity: "order",
|
||||||
fields: [
|
fields: [
|
||||||
"promotion.*",
|
"promotions.*",
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|
||||||
// orders[0].promotion
|
// orders[0].promotions
|
||||||
```
|
```
|
||||||
|
|
||||||
</CodeTab>
|
</CodeTab>
|
||||||
@@ -628,11 +628,11 @@ import { useQueryGraphStep } from "@medusajs/medusa/core-flows"
|
|||||||
const { data: orders } = useQueryGraphStep({
|
const { data: orders } = useQueryGraphStep({
|
||||||
entity: "order",
|
entity: "order",
|
||||||
fields: [
|
fields: [
|
||||||
"promotion.*",
|
"promotions.*",
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|
||||||
// orders[0].promotion
|
// orders[0].promotions
|
||||||
```
|
```
|
||||||
|
|
||||||
</CodeTab>
|
</CodeTab>
|
||||||
|
|||||||
Reference in new issue
Block a user