mirror of
https://github.com/IT4Change/ohmyform-ui.git
synced 2025-12-13 01:35:51 +00:00
28 lines
491 B
TypeScript
28 lines
491 B
TypeScript
import { gql } from 'apollo-boost'
|
|
|
|
export interface RegisterMutationData {
|
|
tokens: {
|
|
access: string
|
|
refresh: string
|
|
}
|
|
}
|
|
|
|
export interface RegisterUserData {
|
|
username: string
|
|
email: string
|
|
password: string
|
|
}
|
|
|
|
export interface RegisterMutationVariables {
|
|
user: RegisterUserData
|
|
}
|
|
|
|
export const REGISTER_MUTATION = gql`
|
|
mutation register($user: UserCreateInput!) {
|
|
tokens: authRegister(user: $user) {
|
|
access: accessToken
|
|
refresh: refreshToken
|
|
}
|
|
}
|
|
`
|