docs: update order promotion link details (#13023)

This commit is contained in:
Shahed Nasser
2025-07-24 11:09:55 +03:00
committed by GitHub
parent 394226b5c1
commit bac106116b
2 changed files with 3250 additions and 8 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -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>