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

pull/2190/merge
Marks Polakovs 4 years ago committed by GitHub
parent 15bca54bdf
commit 95b6a7ad82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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')
// }

Loading…
Cancel
Save