feat: GraphQL schema
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
'use strict'
|
||||
|
||||
/* global wiki */
|
||||
|
||||
module.exports = {
|
||||
Query(obj, args, context, info) {
|
||||
return wiki.db.Group.findAll({ where: args })
|
||||
},
|
||||
Type: {
|
||||
users(grp) {
|
||||
return grp.getUsers()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user