graphql: Add a method to update a user
This commit is contained in:
committed by
nitnelave
parent
0ac9e134de
commit
2954109d96
@@ -4,7 +4,8 @@ input EqualityConstraint {
|
||||
}
|
||||
|
||||
type Mutation {
|
||||
createUser(user: UserInput!): User!
|
||||
createUser(user: CreateUserInput!): User!
|
||||
updateUser(user: UpdateUserInput!): Success!
|
||||
}
|
||||
|
||||
type Group {
|
||||
@@ -28,7 +29,7 @@ input RequestFilter {
|
||||
scalar DateTimeUtc
|
||||
|
||||
"The details required to create a user."
|
||||
input UserInput {
|
||||
input CreateUserInput {
|
||||
id: String!
|
||||
email: String!
|
||||
displayName: String
|
||||
@@ -53,6 +54,19 @@ type User {
|
||||
groups: [Group!]!
|
||||
}
|
||||
|
||||
type Success {
|
||||
ok: Boolean!
|
||||
}
|
||||
|
||||
"The fields that can be updated for a user."
|
||||
input UpdateUserInput {
|
||||
id: String!
|
||||
email: String
|
||||
displayName: String
|
||||
firstName: String
|
||||
lastName: String
|
||||
}
|
||||
|
||||
schema {
|
||||
query: Query
|
||||
mutation: Mutation
|
||||
|
||||
Reference in New Issue
Block a user