Request relation only when required

This commit is contained in:
Adria Navarro 2024-12-12 17:25:07 +01:00
parent ee51503532
commit e93a207127
1 changed files with 4 additions and 0 deletions

View File

@ -1268,6 +1268,10 @@ class InternalBuilder {
const fieldList = relationshipFields.map(field =>
this.buildJsonField(relatedTable, field)
)
if (!fieldList.length) {
continue
}
const fieldListFormatted = fieldList
.map(f => {
const separator = this.client === SqlClient.ORACLE ? " VALUE " : ","