How to make tRPC calls from the server side
I have tried following https://trpc.io/docs/server-side-calls however I get the error shown in screenshot
Is it possible to call one tRPC method, from another on the server side?
Server Side Calls | tRPC
You may need to call your procedure(s) directly from the server, createCaller() function returns you an instance of RouterCaller able to execute queries and mutations.
3 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Aah perfect, will look into that thanks both 🙂
@yoers did you have any luck with this?
I'm using
createContextInner
and passing 'session: null'... but getting an arbitrary {"code":"INTERNAL_SERVER_ERROR","name":"TRPCError"}