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

fix update() parameters table

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • v1.3.0
    • None
    • manual
    • None

    Description

      Given that we state the syntax:

      { upsert: <Boolean>,
      multi: <Boolean>
      }

      and then also specify the 2.2 syntax

      { <query>, <update>, <upsert>, <multi> }

      then when we state that upsert can be either a Document or a Boolean, which is kind of confusing since it seems to suggest

      { upsert: <document> }

      which is nonsensical for either the latest syntax or the 2.2 syntax. Ditto with multi.

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            kay.kim@mongodb.com Kay Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 4 weeks ago