Ignition 98
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Ignition 98 on 11/12/2023 in #questions
Difference between createTRPCNextAppDirServer, createTRPCNext and createTRPCProxyClient?
@ziN as far as I understand, createTRPCProxyClient<AppRouter> is used to create a client that can call any procedure defined in the AppRouter type. appRouter.createCaller on the other hand, is used to create a caller for a specific procedure that the client wants to call.
Don't get what you're trying to say.
4 replies
TTCTheo's Typesafe Cult
•Created by Zan on 11/13/2023 in #questions
Would ya'll use Turbo/NX for a monorepo with 2 or 3 services?
@Zan Turbo is fine for this usecase.
Try reading this article + repo.
https://www.chernicki.com/blog/infinitely-scalable-applications
https://github.com/supabase-community/create-t3-turbo
6 replies
Difference between createTRPCNextAppDirServer, createTRPCNext and createTRPCProxyClient?
I'm referring to step 3 from the docs.
https://trpc.io/docs/server/data-transformers
Currently I'm using the following structure to make server side calls to my database:
I don't quite get what benefit I'd get if I was to use createTRPCNextAppDirServer or createTRPCNext instead of createTRPCProxyClient as all of them are capable of making server side calls.
30 replies