#NestJS with trpc

1 messages · Page 1 of 1 (latest)

sweet light
#

Hello, is there a way to work with NestJS and add trpc? I'm trying to move away from GraphQL but one thing that I would need is the end-to-end types.

Is there any good solutions for this?

Appreciate the help,
// Daniel

hot pawn
deft pawn
sweet light
#

Thanks for the help. I'll be looking into ts-rest 🙂

echo bear
#

which can compile an sdk that the frontend can use to establish type safety

toxic crypt
#

Ts-rest has just upgraded their Nest integration too!

#

+1 for ts-rest. It's really good

hot pawn
#

ts-rest looks like the best of both words. The type safety and ease of development of trpc while still being a simple rest. Previously, we also used a client generated from openapi, but it's not as ergonomic as this.