Unverified Commit 95b6a7ad authored by Marks Polakovs's avatar Marks Polakovs Committed by GitHub

fix: resolve tags on pages in GraphQL (#2247)

parent 15bca54b
......@@ -565,6 +565,9 @@ module.exports = {
}
},
Page: {
async tags (obj) {
return await WIKI.models.pages.relatedQuery('tags').for(obj.id)
}
// comments(pg) {
// return pg.$relatedQuery('comments')
// }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment