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 =>
|
const fieldList = relationshipFields.map(field =>
|
||||||
this.buildJsonField(relatedTable, field)
|
this.buildJsonField(relatedTable, field)
|
||||||
)
|
)
|
||||||
|
if (!fieldList.length) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
const fieldListFormatted = fieldList
|
const fieldListFormatted = fieldList
|
||||||
.map(f => {
|
.map(f => {
|
||||||
const separator = this.client === SqlClient.ORACLE ? " VALUE " : ","
|
const separator = this.client === SqlClient.ORACLE ? " VALUE " : ","
|
||||||
|
|
Loading…
Reference in New Issue