Deepak SharmaD
tRPC2y ago
15 replies
Deepak Sharma

Nested tRPC procedures.

I'm trying to convert a REST API structure to tRPC. Specifically, I want to replicate the nested REST route products/:productId/discount in tRPC ? . How should I declare and organize these nested routes in tRPC to match this structure effectively?
Solution
there is no reason for the nesting here because you only have one procedure inside the nested routers
Was this page helpful?