1
0
Fork 0
mirror of synced 2024-09-25 13:51:40 +12:00

Fix for SQL server.

This commit is contained in:
mike12345567 2024-09-24 13:44:26 +01:00
parent 464f973f12
commit c643c82654

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