resolvers-group.js 210 B

1234567891011121314
  1. 'use strict'
  2. /* global wiki */
  3. module.exports = {
  4. Query(obj, args, context, info) {
  5. return wiki.db.Group.findAll({ where: args })
  6. },
  7. Type: {
  8. users(grp) {
  9. return grp.getUsers()
  10. }
  11. }
  12. }