zenstack
zenstack copied to clipboard
[Feature Request] - Add support for computed fields for hooks
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.
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.