'Graphql apollo-client ios batch request
I'm working on an application which use the "apollo-graphql-client".
I'm trying to send a batch request (multiple queries/ mutation in a single request), and so far I'm only familiar about sending a single query.
Is it possible? There is no documentation regarding batch request for ios in the apollo-client docs.
Thanks
Solution 1:[1]
Batching can be done as a single query / mutation with this graphql request structure:
mutation {
M1: createUser(ID: "21959d03-564b-4fab-9cef-a6cb771ac016"){
ID
Name
}
M2: createUser(ID: "00b8d317-eb26-4e63-807c-2345ce246316") {
ID
Name
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Tomer |
