Skip to content

MongoDB: forced referential actions to prevent looping (target 3.7) #2629

@tanberry

Description

@tanberry

Dev work is PR #2415
Per Flavian:
Any MongoDB datamodel with self relations or cycles between 3 models will be forced to set some specific referential actions to prevent the referential action emulations from looping infinitely (eg: Cascade cannot work).

The rules and examples have already been all written for SQL Server here. And here

These limitations exist as soon as you enable the referentialIntegrity = "prisma" mode. Since it’s enabled for MongoDB by default, it’s the primary target for this change.

Proposal is that we create a different page based on the SQL Server one for the prisma referentialIntegrity mode and there explain how that affects MongoDB.

Note: The Multiple cascade paths between two models chapter do not apply though.

Metadata

Metadata

Assignees

Labels

type/docsDocumentation creation, updates or corrections

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions