Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-1588

$unset invalid : "manual/reference/operator/unset.txt"

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Cannot Reproduce
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None

    Description

      Am I crazy? I'm losing it for sure!

      Issuing this command:

      db.mycollection.update(

      { thefield: 'avalue' }

      , { $unset:

      { unsetfield: 1 }

      })

      Causes this error: Invalid modifier $unset

      Reporter: Joseph T
      E-mail: me@josepht.com

      Attachments

        Activity

          People

            Unassigned Unassigned
            auto auto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 36 weeks, 2 days ago