feat: GraphQL schema

This commit is contained in:
NGPixel committed 2017-08-12 17:26:27 -04:00
1 parent 62067caa62
commit 437b88bf58
8 files changed
+187 -60

No files matched your search

+1
View File
@@ -5,6 +5,7 @@
*/
module.exports = db => {
db.User.belongsToMany(db.Group, { through: 'userGroups' })
db.Group.belongsToMany(db.User, { through: 'userGroups' })
db.Group.hasMany(db.Right, { as: 'groupRights' })
db.Document.hasMany(db.Tag, { as: 'documentTags' })
db.File.belongsTo(db.Folder)