We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Description and expected behavior
abstract model SoftDelete { deleted Int @default(0) @omit } model MyModel extends SoftDelete { id String @id @default(cuid()) name String @@deny('update', deleted != 0 && future().deleted != 0) }
The above @deny rule errors: Could not resolve reference to DataModelField named 'deleted'.
Could not resolve reference to DataModelField named 'deleted'.
Workaround for now: Place the deny rule in the abstract model.
Environment (please complete the following information)
The text was updated successfully, but these errors were encountered:
Thanks for reporting this @onimitch . I'll confirm and make a fix soon.
Sorry, something went wrong.
fix(zmodel): fields from base model cannot be accessed from future().
future().
77829c6
Fixes #1695
Fixed in 2.6.0
@ymc9 thanks!
No branches or pull requests
Description and expected behavior
The above @deny rule errors:
Could not resolve reference to DataModelField named 'deleted'.
Workaround for now: Place the deny rule in the abstract model.
Environment (please complete the following information)
The text was updated successfully, but these errors were encountered: