Dbeg
Dbeg
Explore posts from servers
TtRPC
Created by Dbeg on 4/7/2025 in #❓-help
Benefits of trpc in tan stack
Hi all! New to trpc and was just starting using tanstack start for the first time. Was curious for those who have a bit more experience with trpc, is there any specific reason you would use it in a tanstack start app? From the start docs Tanner mentions being heavily inspired by trpc, it seems like a lot of the benefits of trpc that you get in say next, are covered by starts integration between server functions & tanstack query. Would love to hear what people think. Or if I missed something where this is discussed. Thanks!
2 replies
DTDrizzle Team
Created by Dbeg on 5/28/2023 in #help
Infer type for relational query
Is there anyway to infer the type of a relational queries result? For example if I have a user who makes posts which has comments. I have a relational query which gets me all my users, their posts and their comments nested. Is there a way to infer that type? Currently constructing the type myself from the tables in the schema.
12 replies