Fix for SQL server.

This commit is contained in:
mike12345567 2024-09-24 13:44:26 +01:00
parent 464f973f12
commit c643c82654
1 changed files with 3 additions and 1 deletions

View File

@ -1031,7 +1031,9 @@ class InternalBuilder {
.select(`${fromAlias}.*`)
// @ts-ignore - from alias syntax not TS supported
.from({
[fromAlias]: subQuery.select(`${toAlias}.*`),
[fromAlias]: subQuery
.select(`${toAlias}.*`)
.limit(getRelationshipLimit()),
})} FOR JSON PATH))`
)
break