zenstack icon indicating copy to clipboard operation
zenstack copied to clipboard

[Feature Request] - Add support for computed fields for hooks

Open Tsimopak opened this issue 10 months ago • 1 comments

According to: https://www.prisma.io/docs/orm/prisma-client/client-extensions/result

It is possible to make computed fields based on others. My suggestion is maybe to be able to add/mark to the schema its typing so later on it could be used in hooks.

Tsimopak avatar Feb 19 '25 20:02 Tsimopak

Right. The main challenge is client extensions are completely outside of schema. Duplicating information can make it hard to maintain. Let's keep thinking about a good solution.

ymc9 avatar Feb 23 '25 15:02 ymc9