We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c171a7e commit 3a71735Copy full SHA for 3a71735
src/index.js
@@ -43,7 +43,7 @@ function processRelationField (resourceConfig, query, field, criteria, options,
43
let relationTable = getTable(relationResourceConfig)
44
let foreignId = `${relationTable}.${relationResourceConfig.idAttribute}`
45
46
- query.join(relationTable, localId, foreignId)
+ query.leftJoin(relationTable, localId, foreignId)
47
joinedTables.push(relationPath.join('.'))
48
}
49
} else if (relation.type === 'hasMany') {
0 commit comments