Fix for SQL server.
This commit is contained in:
parent
464f973f12
commit
c643c82654
|
@ -1031,7 +1031,9 @@ class InternalBuilder {
|
||||||
.select(`${fromAlias}.*`)
|
.select(`${fromAlias}.*`)
|
||||||
// @ts-ignore - from alias syntax not TS supported
|
// @ts-ignore - from alias syntax not TS supported
|
||||||
.from({
|
.from({
|
||||||
[fromAlias]: subQuery.select(`${toAlias}.*`),
|
[fromAlias]: subQuery
|
||||||
|
.select(`${toAlias}.*`)
|
||||||
|
.limit(getRelationshipLimit()),
|
||||||
})} FOR JSON PATH))`
|
})} FOR JSON PATH))`
|
||||||
)
|
)
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue