feat: user profile fetch info + groups

This commit is contained in:
NGPixel
2020-03-30 01:30:10 -04:00
committed by Nicolas Giard
parent 8ea699ac7a
commit c7f3c9d908
6 changed files with 498 additions and 24 deletions

View File

@@ -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]!
}