resolvers-user.js 211 B

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