We have one appsync instance that execute use two lambdas as data source , the information its requested in this way
query MyQuery {
getOrder(userName: "user", uuid: "some uuid") {
status
}
updateTicketNumber(terminalId: "1", userName: "some user") {
ticketNumber
}
}
There is way that if the status is invalid do not perform second query?