feat: admin - groups single view

This commit is contained in:
NGPixel
2018-03-28 00:02:32 -04:00
parent 346493f845
commit e79dfc0822
25 changed files with 76 additions and 38 deletions

View File

@@ -28,6 +28,9 @@ module.exports = {
// TODO: Figure out how to exclude these extra fields...
group: ['group.id', 'users->userGroups.createdAt', 'users->userGroups.updatedAt', 'users->userGroups.version', 'users->userGroups.userId', 'users->userGroups.groupId']
})
},
async single(obj, args, context, info) {
return WIKI.db.Group.findById(args.id)
}
},
GroupMutation: {