29 lines
518 B
TypeScript
29 lines
518 B
TypeScript
|
import gql from 'graphql-tag';
|
||
|
|
||
|
export const CREATE_USER = gql`
|
||
|
mutation CreateUser($email: String!, $username: String!, $password: String!) {
|
||
|
createUser(email: $email, username: $username, password: $password) {
|
||
|
preferredUsername,
|
||
|
user {
|
||
|
email,
|
||
|
confirmationSentAt
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
export const VALIDATE_USER = gql`
|
||
|
mutation ValidateUser($token: String!) {
|
||
|
validateUser(token: $token) {
|
||
|
token,
|
||
|
user {
|
||
|
id,
|
||
|
},
|
||
|
actor {
|
||
|
avatarUrl,
|
||
|
preferredUsername,
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
`;
|