Closed milindgoel15 closed 4 months ago
Just a note, i am using the schema from referential actions docs with provider set to MongoDB to reproduce the issue.
Hey @milindgoel15, I can confirm what you're seeing as a bug, this is due to an issue in engines where we were using the incorrect set of referential actions specifically for completions offered by the extension.
There's a fix in review :)
Bug description
Not sure if this is a bug or a missing feature, but when adding any referential actions (onDelete or onUpdate), it does not give any auto-suggestion in vscode even while using the Prisma extension.
Normally it gives fields, names, references when creating any type of relation between models but it does not give for onDelete or onUpdate. Also all the support actions with it (Cascade, SetNull, etc).
How to reproduce
Expected behavior
the actions gets auto-suggested as to what type of relation you want to set.
Prisma information
Environment & setup
Prisma Version