Aleksandr Ivanov
11/25/2020, 9:25 AMmutation offlineSync {
s1: createDeliveryShift(input: {
id: "71ea006c-2a4d-476a-9bcc-78c43baa7bb7"
data: {
id: "71ea006c-2a4d-476a-9bcc-78c43baa7bb7"
}
registeredAt: "2020-11-05T14:11:00.000Z"
}) {
id
}
s2: startDeliveryShift(input: {
id: "2cd03c01-c684-41f1-b1a0-aac285b29ba7"
data: {
id: "71ea006c-2a4d-476a-9bcc-78c43baa7bb7"
startedAt: "2020-11-05T14:11:00.000Z"
}
registeredAt: "2020-11-05T14:11:00.000Z"
}) {
id
}
}
amount of mutation is dynamic. in the example there is only two mutations s1,s2, but amount and type of mutations could be different. Is it possible to do that wit apollo client library?mbonnin
11/25/2020, 10:08 AM[
{
query: < query 0 >,
variables: < variables for query 0 >,
},
{
query: < query 1 >,
variables: < variables for query 1 >,
},
{
query: < query n >
variables: < variables for query n >,
}
]
Aleksandr Ivanov
11/25/2020, 10:12 AMmbonnin
11/25/2020, 10:13 AMAleksandr Ivanov
11/25/2020, 12:53 PMmbonnin
11/25/2020, 12:56 PMAleksandr Ivanov
11/25/2020, 2:52 PM