Branching based on GraphQL mutation response
I have a mutation that returns a response union (basically a couple of differnet types of succes and an error ) and I would like to branch based on which member of the union is returned (to show different notifications ) . What 's the best way to go about it ? Currently I 'm trying to call the mutation in a workflow that then switches on the data member in the response . For the time being I 'm manually doing a get on _ _typename to compare , but is there a better way ?
.jpeg/public)