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

Comment on: "manual/reference/operator/update/pull.txt"

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • None
    • manual, Server

    Description

      $elemMatch is not working with this version (2.6). instead use the following query to remove objects from array with matching criteria :

      db.survey.update(
      { },
      { $pull: { results:

      { score: 8 , item: "B" }

      } },
      false, true
      )

      Attachments

        Activity

          People

            Unassigned Unassigned
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              1 year, 14 weeks, 2 days ago