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
211 B

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