2024-12-25 15:09:35 +03:00

23 lines
442 B
GraphQL

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
}
}
query GetCustomer($telegramId: Long!) {
customers(filters: { telegramId: { eq: $telegramId } }) {
name
phone
role
photoUrl
}
}