Infer query type of `data` - tRPC