Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- = МУТАЦИЯ
- mutation UpdateVisit($input: UpdateVisitInput!) {
- updateVisit(input: $input) {
- errors {
- phone
- name
- comment
- }
- result {
- id
- }
- }
- }
- = INPUT где убрана одна запись (ошибка)
- {
- "input": {
- "id": "806",
- "phone": "+79032226611",
- "name": "111",
- "comment": "",
- "records": [
- {
- "id": "962",
- "status": "created",
- "comment": "",
- "mark": "thisEmployee",
- "start": "14:45",
- "services": [
- {
- "id": "982",
- "count": 1,
- "price": 5000,
- "duration": 130
- }
- ]
- }
- ]
- }
- }
- = INPUT Оригинальный, рабочий
- {
- "input": {
- "id": "806",
- "phone": "+79032226611",
- "name": "111",
- "comment": "",
- "records": [
- {
- "id": "960",
- "status": "created",
- "comment": "",
- "mark": "thisEmployee",
- "start": "10:15",
- "services": [
- {
- "id": "980",
- "count": 1,
- "price": 400,
- "duration": 0
- },
- {
- "id": "981",
- "count": 1,
- "price": 5000,
- "duration": 130
- }
- ]
- },
- {
- "id": "962",
- "status": "created",
- "comment": "",
- "mark": "thisEmployee",
- "start": "14:45",
- "services": [
- {
- "id": "982",
- "count": 1,
- "price": 5000,
- "duration": 130
- }
- ]
- }
- ]
- }
- }
- = ТОКЕН
- { "Authorization": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjQ0LCJpYXQiOjE1NjQ4NzUzODksImV4cCI6MTU2NTQ4MDE4OX0.KjPJevKWqACjwECm0xz6JVO2aPlZTHVTn6s2hUHrWcw"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement