Multiple Queries
To reduce the need for multiple round trips, you can send multiple queries in a single request. The server will process them together and return a single response containing all the requested data. This approach minimises network overhead and improves efficiency.
Response
{
"data": {
"firstBet": {
"nodes": [
{
"id": "5701100c906045ecac389d35dcf7d8f3",
"ticket": {
"id": "7a6bc01b-b3ce-435d-8025-14f7ed622dac"
},
"placement": {
"status": "ACCEPTED"
}
}
]
},
"secondBet": {
"nodes": [
{
"id": "44839ee8bbce4bb6b5964b6480d6c5fb",
"ticket": {
"id": "7a6bc01b-b3ce-435d-8025-14f7ed622dac"
},
"placement": {
"status": "ACCEPTED"
}
}
]
}
}
}