2min chapter

Syntax - Tasty Web Development Treats cover image

Supper Club × tRPC With Alex KATT Johansson

Syntax - Tasty Web Development Treats

CHAPTER

GraphQL TRPC

With GraphQL, you can write your schema to relate data and then you can run into a situation where you have some data that is connected to some data. And without knowing it you might accidentally do 40 different DB queries when you could probably do it in one relational query so with TRPC, it doesn't care right it doesn't have any any step in there. It's just do your database stuff and send the data. Yeah, there's no relationship between the sort of entities in your back end. So, like in GraphQL, like you can do this thing where you fetch 10 posts and then with every post you need to fetch that offer and that becomes another 10 requests. Like

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode