When updating a document, $unset nil fields.

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When updating a document where some fields have been nullified, this uses the $unset operator to remove nil fields entirely. This ensures that fields with no content don't take up space unnecessarily in the db.

      Also, there were some failures in the spec suite that were present both before and after my changes - I put them in a gist in case you were unaware of them:

      https://gist.github.com/803439

      Thoughts and changes are of course welcome

      Thanks!

            Assignee:
            Unassigned
            Reporter:
            Chris Hanks
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: