fix: objection.js 2.0 compat fixes
This commit is contained in:
@@ -61,11 +61,9 @@ module.exports = {
|
||||
'createdAt',
|
||||
'updatedAt'
|
||||
])
|
||||
.eagerAlgorithm(WIKI.models.Objection.Model.JoinEagerAlgorithm)
|
||||
.eager('tags(selectTags)', {
|
||||
selectTags: builder => {
|
||||
builder.select('tag')
|
||||
}
|
||||
.withGraphJoined('tags')
|
||||
.modifyGraph('tags', builder => {
|
||||
builder.select('tag')
|
||||
})
|
||||
.modify(queryBuilder => {
|
||||
if (args.limit) {
|
||||
|
Reference in New Issue
Block a user