feat: GraphQL schema

This commit is contained in:
NGPixel
2017-08-06 21:05:10 -04:00
parent 62067caa62
commit 437b88bf58
8 changed files with 187 additions and 60 deletions
+14
View File
@@ -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()
}
}
}