Re:Full-Stack TypeScript with tRPC and React
by satvikpendem on Tuesday March 14, 2023 @04:43PM
(#35158218)
I use GraphQL for disparate clients talking to the server, it's agnostic to the backend and frontend languages. If Garph is already in TS, why would I use it instead of tRPC? I guess if I have a non-TS frontend such as a Flutter app?
[ Parent
| on HN ]
Re:Full-Stack TypeScript with tRPC and React
by Wissmueller on Tuesday March 14, 2023 @04:57PM
(#35158466)
Perfect use-case for Garph:
You have a TypeScript backend and TypeScript frontend and want to expose the GraphQL API to third-party consumers or add a mobile app into the mix
And since Garph produces a spec-compatible GraphQL API you can use it with existing tools like Hasura, Apollo, Stellate, AWS AppSync, etc.
Re:Full-Stack TypeScript with tRPC and React
by satvikpendem on Tuesday March 14, 2023 @05:02PM
(#35158547)
Makes sense, so if I already have a tRPC application, what's the transition like to Garph? Or do I need to have it already in Garph when first starting out (ie hard to transition)?
Re:Full-Stack TypeScript with tRPC and React
by ushakov on Tuesday March 14, 2023 @06:45PM
(#35160238)
Depends on your application size. The hardest part to transition will probably be the client
We will provide a migration path in our documentation and build some utilities to automate the work required. You can join our Discord to get an update when we have something to share (linked in the repo)