OBJECT
Mutation
Root mutation
link GraphQL Schema definition
- type Mutation {
- # Add a new user and set this password.
- #
- # Arguments
- # user:
- # pass:
- (: UserIn!, : String!): User
- # Delete an existing user from this id.
- #
- # Arguments
- # id:
- (: Int!): User
- # Edit the information of user from this id.
- #
- # Arguments
- # id:
- # user:
- (: Int!, : UserIn!): User
- # Change the user's password from this id.
- #
- # Arguments
- # id:
- # old_pass:
- # new_pass:
- (: Int!, : String!, : String!): User
- # Add a new group.
- #
- # Arguments
- # name:
- (: String!): Group
- # Delete an existing group from this id.
- #
- # Arguments
- # id:
- (: Int!): Group
- # Edit an existing group from this id.
- #
- # Arguments
- # id:
- # name:
- (: Int!, : String): Group
- # Add a new permission.
- #
- # Arguments
- # name:
- # code:
- (: String!, : String): Permission
- # Delete an existing permission from this id.
- #
- # Arguments
- # id:
- (: Int!): Permission
- # Edit an existing permission from this id.
- #
- # Arguments
- # id:
- # name:
- # code:
- (: Int!, : String!, : String): Permission
- # Assign a group to the user.
- #
- # Arguments
- # userId:
- # groupId:
- (: Int!, : Int!): User
- # Assign a permission to the user.
- #
- # Arguments
- # userId:
- # permId:
- (: Int!, : Int!): User
- # Assign a permission to the group.
- #
- # Arguments
- # groupId:
- # permId:
- (: Int, : Int!): Group
- # Delete the group of user.
- #
- # Arguments
- # userId:
- # groupId:
- (: Int!, : Int!): User
- # Delete the permission of user.
- #
- # Arguments
- # userId:
- # permId:
- (: Int!, : Int!): User
- # Delete the permission of group.
- #
- # Arguments
- # groupId:
- # permId:
- (: Int!, : Int!): Group
- }
link Require by
This element is not required by anyone