fix(orchestration): fetch fields from link entities (#14097)

* fix(orchestration): fetch fields from link entities

* args
This commit is contained in:
Carlos R. L. Rodrigues
2025-11-25 12:35:05 +02:00
committed by GitHub
parent 0e73d8d5e3
commit 5725837ba8
2 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/orchestration": patch
---
fix(orchestration): fetch fields from link entity

View File

@@ -1384,6 +1384,8 @@ export class RemoteJoiner {
const existingExpand = expands.find((exp) => exp.property === midProp)
const extraExtends = {
fields: existingExpand?.fields,
args: existingExpand?.args,
...(midProp === fullAliasProp ? expand : {}),
property: midProp,
isAliasMapping: !existingExpand,