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

15 lines
211 B
JavaScript

'use strict'
/* global wiki */
module.exports = {
Query(obj, args, context, info) {
return wiki.db.User.findAll({ where: args })
},
Type: {
groups(usr) {
return usr.getGroups()
}
}
}