Request relation only when required
This commit is contained in:
parent
ee51503532
commit
e93a207127
|
@ -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 " : ","
|
||||
|
|
Loading…
Reference in New Issue