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

The function/triggers guide (high-rank google result) recommends deprecated middleware #466

Open
WillSmithTE opened this issue Jan 17, 2024 · 0 comments
Labels
content/bug Bug with Data Guide content

Comments

@WillSmithTE
Copy link

Page affected

https://www.prisma.io/dataguide/datamodeling/functional-units#triggers-and-consequences

https://github.com/prisma/dataguide/blob/main/content/02-datamodeling/08-functional-units.mdx#L182

Expected content

A recommendation in a way that doesn't use deprecated tech

Actual content

Middleware recommended and linked to

In Prisma Client, you can achieve similar results with TypeScript at the client level instead of SQL by using middleware. Middleware allows you to perform an action before and after every query (e.g., turn a delete query into a "soft" delete which toggles a record's visibility instead).

@WillSmithTE WillSmithTE added the content/bug Bug with Data Guide content label Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content/bug Bug with Data Guide content
Projects
None yet
Development

No branches or pull requests

1 participant