23 lines
442 B
GraphQL
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
|
|
}
|
|
}
|