wikijs-fork/server/schemas/resolvers-user.js

15 lines
211 B
JavaScript
Raw Normal View History

2017-08-07 01:05:10 +00:00
'use strict'
/* global wiki */
module.exports = {
Query(obj, args, context, info) {
return wiki.db.User.findAll({ where: args })
},
Type: {
groups(usr) {
return usr.getGroups()
}
}
}