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
- auth: 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
- authDirectly(token: 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
- login(email: String!, password: String!): String
- # Logs user out by unsetting the cookies.
- # Client should invalidate it's token after calling this.
- logout: 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
- register(email: String!, password: String!, passwordValidation: String!): Boolean
- # Confirms user registration.
- # Returns true on success.
- #
- # Arguments
- # token: Token received in an email
- registerConfirm(token: String!): Boolean
- # Sends a password reset email.
- # Returns true on success.
- #
- # Arguments
- # email: Existing user email
- reset(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
- resetConfirm(
- token: String!,
- password: String!,
- passwordValidation: 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
- shadowRegister(
- token: String!,
- password: String!,
- passwordValidation: String!
- ): Boolean
- # Resends registration email for shadow-register or for normal registration
- #
- # Arguments
- # email: Pending user email
- resendConfirmation(email: String!): Boolean
- }

`

## link Require by

This element is not required by anyone