How to solve 'Query function depends on a variable' with tRPC

Original message was deleted