question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Preview feature feedback: Referential Actions (`referentialActions`)

See original GitHub issue

Please share your feedback about the referentialActions functionality released in v2.26.0 in this issue.

  • If you encounter a bug, please open a bug report in this repo.
  • If the feature is working well for you, please share this in a comment below or leave a 👍 on this issue.

If you have any questions, don’t hesitate to ask them in the #prisma-client channel in the Prisma Slack.

Known Limitations

VSCode extension/language tool

  • No auto complete for available actions (issue)
  • Autocomplete does not work for arguments after the first one in @relation() (issue)
  • Actions show up in auto complete even without preview feature (issue)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:66
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

12reactions
MikaStarkcommented, Jul 1, 2021

Amazing feature. Just tried it for one little project in production and it works like a charm. I overuse cascade deletes, and for now it seems stable to me 😃

3reactions
tomhoulecommented, Jul 6, 2021

@PabloSzx I don’t know if there is a better solution, but one approach would be renaming the table (it should be called something like _ModelAToModelB) to something else, then using db pull / introspect and the table would show up in your prisma schema.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Referential actions - Prisma
Referential actions let you define the update and delete behavior of related models on the database level.
Read more >
SharePoint (preview) - Power Automate - Microsoft Learn
The SharePoint (preview) group of actions allows the utilization of the SharePoint connector from within desktop flows, alleviating the need to ...
Read more >
Actions, resources, and condition keys for Amazon SageMaker
Actions Description Access level Resource types (*r... CreateAction Grants permission to create an action Write action* CreateAction Grants permission to create an action Write CreateAlgorithm Grants...
Read more >
Parameter Actions - Tableau Help
The parameter referenced in the action must also be referenced in some part of the visualization. You can do this in different ways,...
Read more >
Record Type Object - Appian Documentation
Record type object references also allow you to reference fields, filters, and actions configured on the record type for use in an expression,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found