2min chapter

Frontend First cover image

Lessons from stitching GraphQL services with Hasura

Frontend First

CHAPTER

How to Derivate Data on a User Model

We use Asura and Asura basically reads data out of a Postgres database and turns it into a GraphQL API. It gets a little tricky when you have sort of like derived data. So deriving that data when your backend is just kind of a read state of a Postgress database and turns into a Graphql request response is kind of tricky. But yes, when rails and active records, this would be like a, what do they call it? Just some method response. Yeah. And the method can operate on the data, but that's at layer of abstraction that you can write code and test against for the rest of the application.

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