WriteResult debug handler should display null for a missing writeConcernError

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Minor - P4
    • 1.0.0-beta2
    • Affects Version/s: 1.0.0-beta1
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, the debug handler serializes an empty BSON document to an empty array. It would be more consistent if we displayed NULL instead.

      Coincidentally, an empty array is reported for "writeErrors"; however, that is always a collection of documents, so an empty array is analogous to "writeConcernError" being null.

              Assignee:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: