Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tsimopak opened this issue Feb 19, 2025 · 1 comment
Open

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

Tsimopak opened this issue Feb 19, 2025 · 1 comment

Comments

@Tsimopak
Copy link

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.

@ymc9
Copy link
Member

ymc9 commented Feb 23, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants