Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-1422

Document arrayFilters option for `findAndModify`, `findOneAndUpdate`

    XMLWordPrintable

    Details

    • Type: Question
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Fixed
    • Affects Version/s: 3.0.7
    • Fix Version/s: None
    • Component/s: native
    • Environment:
      not relevant really.

      Description

      The mongodb docs Here show arrayFilters as an option ( same for findOneAndUpdate ). The native js driver only appears to support this option for the update* commands:

      mongodb: awk '/options.arrayFilters/,/ = / { print $1 }' lib/collection.js | grep Coll
      Collection.prototype.updateOne
      Collection.prototype.updateMany
      Collection.prototype.update
      mongodb:
      

      It is supported in other methods, so we should document where it is supported.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: