Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1298

ON DELETE, ON CASCADE for DBRef

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Usability, Write Ops
    • None

      I love the way MongoDB handles data.

      But there is no mechanism for 'foreign keys' in the way like sql, what is a must have.

      I mean, there should be a mechanism we can delete items automatically if a DBRef becomes null
      (the item wehere the reference points to is removed). In SQL you have foreign keys with ON DELETE CASCADE or ON UPDATE CASCADE, etc.

      Is it possible to do this (easily) ?

            Assignee:
            Unassigned Unassigned
            Reporter:
            vdvleon Leon van der Veen
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: