fix(orchestration): fetch fields from link entities (#14097)
* fix(orchestration): fetch fields from link entities * args
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/orchestration": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(orchestration): fetch fields from link entity
|
||||||
@@ -1384,6 +1384,8 @@ export class RemoteJoiner {
|
|||||||
const existingExpand = expands.find((exp) => exp.property === midProp)
|
const existingExpand = expands.find((exp) => exp.property === midProp)
|
||||||
|
|
||||||
const extraExtends = {
|
const extraExtends = {
|
||||||
|
fields: existingExpand?.fields,
|
||||||
|
args: existingExpand?.args,
|
||||||
...(midProp === fullAliasProp ? expand : {}),
|
...(midProp === fullAliasProp ? expand : {}),
|
||||||
property: midProp,
|
property: midProp,
|
||||||
isAliasMapping: !existingExpand,
|
isAliasMapping: !existingExpand,
|
||||||
|
|||||||
Reference in New Issue
Block a user