OBJECT
Mutation
The schema's entry point for public, unauthenticated mutations.
link GraphQL Schema definition
- type Mutation {
- # The schema's entry point for authenticated mutations.
- # An authentication token is required. The token is extracted from cookies.
- #
- # Cookies
- # token: Authentication token obtainable upon signing in
- : AuthMutation!
- # The schema's entry point for authenticated mutations.
- # An authentication token is required. The token is sent as an argument.
- #
- # Arguments
- # token: Authentication token obtainable upon signing in
- (: String!): AuthMutation!
- # Logs in user and sets cookies accordingly.
- # Returns token on success or null on error.
- #
- # Arguments
- # email: User email entered upon registration
- # password: User password
- (: String!, : String!): String
- # Logs user out by unsetting the cookies.
- # Client should invalidate it's token after calling this.
- : Boolean
- # Registers a new user and sends a confirmation email.
- # Returns true on success.
- #
- # Arguments
- # email: New user email
- # password: New user password, needs to be at least 6 characters
- # long and contain at least one uppercase letter, one lowercase letter and one
- # symbol or number
- # passwordValidation: Same password again for validation
- (: String!, : String!, : String!): Boolean
- # Confirms user registration.
- # Returns true on success.
- #
- # Arguments
- # token: Token received in an email
- (: String!): Boolean
- # Sends a password reset email.
- # Returns true on success.
- #
- # Arguments
- # email: Existing user email
- (: String!): Boolean
- # Resets password.
- # Returns true on success.
- #
- # Arguments
- # token: Token received in an email
- # password: New password, needs to be at least 6 characters long
- # and contain at least one uppercase letter, one lowercase letter and one symbol
- # or number
- # passwordValidation: Same password again for validation
- (
- : String!,
- : String!,
- : String!
- ): Boolean
- # Finish registration of a shadow user (invited user, that has not created his
- # account yet).
- # Returns true on success.
- #
- # Arguments
- # token: Token received in an email
- # password: New user password, needs to be at least 6 characters
- # long and contain at least one uppercase letter, one lowercase letter and one
- # symbol or number
- # passwordValidation: Same password again for validation
- (
- : String!,
- : String!,
- : String!
- ): Boolean
- # Resends registration email for shadow-register or for normal registration
- #
- # Arguments
- # email: Pending user email
- (: String!): Boolean
- }
link Require by
This element is not required by anyone