WaspW
Wasp9mo ago
4jandals

Is there a recommended way to add computed fields to a model?

For example, let's say I have a Person entity with a dateOfBirth, and I want to derive age in the model so I can reuse that across the UI.

I think Prisma client supports compute, but not sure how to use that in Wasp? Or maybe there is a better way?
Was this page helpful?