Warn if _id is an object with mutiple keys

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Usability
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      It is usually a very bad idea. Among other reasons, in many languages, db.foo.save(db.foo.findOne()) might insert a new object rather than updating the existing one.

      We will need some way to disable the warnings for the few cases where it is necessary, such as map-reduce output.

      Maybe this is best handled by warning in the driver rather than the server.

            Assignee:
            Unassigned
            Reporter:
            Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: