wikijs-fork/server/schemas/resolvers-group.js
2017-08-12 17:26:27 -04:00

15 lines
210 B
JavaScript

'use strict'
/* global wiki */
module.exports = {
Query(obj, args, context, info) {
return wiki.db.Group.findAll({ where: args })
},
Type: {
users(grp) {
return grp.getUsers()
}
}
}