How to extract mutation type - tRPC