You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
210 B

  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. }