fix: objection.js 2.0 compat fixes
This commit is contained in:
@@ -704,11 +704,9 @@ module.exports = class Page extends Model {
|
||||
])
|
||||
.joinRelated('author')
|
||||
.joinRelated('creator')
|
||||
.eagerAlgorithm(Model.JoinEagerAlgorithm)
|
||||
.eager('tags(selectTags)', {
|
||||
selectTags: builder => {
|
||||
builder.select('tag', 'title')
|
||||
}
|
||||
.withGraphJoined('tags')
|
||||
.modifyGraph('tags', builder => {
|
||||
builder.select('tag', 'title')
|
||||
})
|
||||
.where(queryModeID ? {
|
||||
'pages.id': opts
|
||||
|
Reference in New Issue
Block a user