Gary, el Pingüino ArtefactoG

Extending middlewares

image.png
You are able to add middleware(s) to a procedure with the t.procedure.use() method. The middleware(s) will wrap the invocation of the procedure and must pass through its return value.
Middlewares | tRPC
Was this page helpful?