Role
Represents information about a role.
type Role {
id: ID!
displayName: String
permissions: [Permission]
users: [User]
modules: [Module]
createdAt: DateTimeTz!
updatedAt: DateTimeTz!
deletedAt: DateTimeTz
}
Fields
Role.id
● ID!
non-null scalar
Role's unique identifier.
Role.displayName
● String
scalar
The role's name.
Role.permissions
● [Permission]
list object
The role's permissions.
Role.users
● [User]
list object
The role's related users.
Role.modules
● [Module]
list object
The role's modules.
Role.createdAt
● DateTimeTz!
non-null scalar
The date and time when the role was created.
Role.updatedAt
● DateTimeTz!
non-null scalar
The date and time when the role was last updated.
Role.deletedAt
● DateTimeTz
scalar
The date and time when the role was deleted.
Returned By
createRole
mutation ● deleteRole
mutation ● restoreRole
mutation ● role
query ● updateRole
mutation ● updateRoleModules
mutation ● updateRolePermissions
mutation