wikijs-fork/server/schemas/resolvers-group.js

15 lines
210 B
JavaScript
Raw Normal View History

2017-08-07 01:05:10 +00:00
'use strict'
/* global wiki */
module.exports = {
Query(obj, args, context, info) {
return wiki.db.Group.findAll({ where: args })
},
Type: {
users(grp) {
return grp.getUsers()
}
}
}