2024-12-22 17:24:32 +03:00

29 lines
644 B
GraphQL

mutation Register($identifier: String!, $password: String!, $email: String!) {
register(input: { username: $identifier, password: $password, email: $email }) {
jwt
user {
username
}
}
}
mutation Login($identifier: String!, $password: String!) {
login(input: { identifier: $identifier, password: $password }) {
jwt
}
}
mutation CreateCustomer($name: String!, $telegramId: Long!, $phone: String!) {
createCustomer(data: { name: $name, telegramId: $telegramId, phone: $phone, role: client }) {
documentId
name
telegramId
phone
role
active
createdAt
updatedAt
publishedAt
}
}