feat: admin - groups single view
This commit is contained in:
@@ -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: {
|
||||
|
@@ -21,7 +21,7 @@ type GroupQuery {
|
||||
): [GroupMinimal]
|
||||
|
||||
single(
|
||||
id: String!
|
||||
id: Int!
|
||||
): Group
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ type GroupMinimal {
|
||||
type Group {
|
||||
id: Int!
|
||||
name: String!
|
||||
rights: [String]
|
||||
rights: [Right]
|
||||
users: [User]
|
||||
createdAt: Date!
|
||||
updatedAt: Date!
|
||||
|
Reference in New Issue
Block a user