fix: resolve tags on pages in GraphQL (#2247)
This commit is contained in:
parent
15bca54bdf
commit
95b6a7ad82
@ -565,6 +565,9 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
Page: {
|
Page: {
|
||||||
|
async tags (obj) {
|
||||||
|
return await WIKI.models.pages.relatedQuery('tags').for(obj.id)
|
||||||
|
}
|
||||||
// comments(pg) {
|
// comments(pg) {
|
||||||
// return pg.$relatedQuery('comments')
|
// return pg.$relatedQuery('comments')
|
||||||
// }
|
// }
|
||||||
|
Loading…
Reference in New Issue
Block a user