tRPCttRPC
Powered by
vpjmV
tRPC•10mo ago•
2 replies
vpjm

Calling endpoint within another endpoint

Hi,
I need to get the result of one of my endpoints, but I can't just call the underlying function directly — because every endpoint is wrapped with security and middleware before being exposed through the tRPC appRouter.

So instead of bypassing those layers, I need to trigger the full chain — essentially making a proper call to the endpoint itself (as if it were external), even from inside another tRPC procedure.

What's the recommended way to do this?
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

calling api endpoints from within a trpc api endpoint?
rustclanRrustclan / ❓-help
4y ago
Calling a trpc endpoint inside of a trpc endpoint
rustclanRrustclan / ❓-help
4y ago
Calling a tRPC service from another tRPC service
McPizzaMMcPizza / ❓-help
3y ago
calling trpc endpoints from vanilla nextJs api routes
TkDodo 🔮TTkDodo 🔮 / ❓-help
4y ago