tRPCttRPC
Powered by
santiS
tRPC•2y ago•
7 replies
santi

Is it possible to get the procedure name / id in middleware?

I want to create a caching middleware that in some routes, stores a cache key that contains the route id (example: catalog.product.findMany) and the input (example: { categories: shirts }). It's not clear to me if this is possible.
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Is it possible to call one procedure in another?
TaylorFayTTaylorFay / ❓-help
4y ago
how can i get procedure name?
CaptainCCaptain / ❓-help
4y ago
Set cookie header in procedure middleware
ivanIivan / ❓-help
6mo ago