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

This commit is contained in:
Marks Polakovs 2020-08-10 02:04:44 +02:00 committed by GitHub
parent 15bca54bdf
commit 95b6a7ad82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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