feat: allow admin to user profile (#51)

Resolves #49
This commit is contained in:
Lakhan Samani
2021-09-21 08:23:40 +05:30
committed by GitHub
parent 1ba53e2c49
commit b3a52c2466
7 changed files with 319 additions and 4 deletions

View File

@@ -89,6 +89,15 @@ input UpdateProfileInput {
# roles: [String]
}
input AdminUpdateUserInput {
id: ID!
email: String
firstName: String
lastName: String
image: String
roles: [String]
}
input ForgotPasswordInput {
email: String!
}
@@ -108,6 +117,7 @@ type Mutation {
login(params: LoginInput!): AuthResponse!
logout: Response!
updateProfile(params: UpdateProfileInput!): Response!
adminUpdateUser(params: AdminUpdateUserInput!): User!
verifyEmail(params: VerifyEmailInput!): AuthResponse!
resendVerifyEmail(params: ResendVerifyEmailInput!): Response!
forgotPassword(params: ForgotPasswordInput!): Response!