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

Comment on: "manual/reference/operator/query/gt.txt"

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • manual

    Description

      db.inventory.update( { "carrier.fee":

      { $gt: 2 }

      },
      { $set:

      { price: 9.99 }

      ,

      { multi: true }

      )

      I believe this code example is missing the end bracket of the $set operator expression.

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8 years, 43 weeks, 6 days ago