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

This commit is contained in:
Marks Polakovs authored and GitHub committed 2020-08-09 20:04:44 -04:00
1 parent 15bca54bdf
commit 95b6a7ad82
1 file changed
+3
+3
View File
@@ -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')
// }