feat: user profile fetch info + groups
This commit is contained in:
@@ -27,6 +27,8 @@ type UserQuery {
|
||||
single(
|
||||
id: Int!
|
||||
): User @auth(requires: ["manage:users", "manage:system"])
|
||||
|
||||
profile: UserProfile
|
||||
}
|
||||
|
||||
# -----------------------------------------------
|
||||
@@ -110,3 +112,19 @@ type User {
|
||||
updatedAt: Date!
|
||||
groups: [Group]!
|
||||
}
|
||||
|
||||
type UserProfile {
|
||||
id: Int!
|
||||
name: String!
|
||||
email: String!
|
||||
providerName: String
|
||||
isSystem: Boolean!
|
||||
isVerified: Boolean!
|
||||
location: String!
|
||||
jobTitle: String!
|
||||
timezone: String!
|
||||
createdAt: Date!
|
||||
updatedAt: Date!
|
||||
lastLoginOn: Date!
|
||||
groups: [String]!
|
||||
}
|
||||
|
Reference in New Issue
Block a user