AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
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.