You can use Upser Block - In the response payload of UB query, it comes to a field called "q" or the same name you given to the query. So, after the mutation, it will return the query with the values changed. That can be used for your use case.
Cheers.