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 201 additions and 60 deletions

View File

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