• Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.13.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • 3
    • Iteration Chicago
    • Needed
    • Hide

      (This may have some overlap with existing documentation changes.)

      We consider the db.coll.findAndModify() method deprecated, in favor of .findOneAnd(Delete,Update,Replace).

      The `returnNewDocument` option for each of .findOneAnd(Delete,Update,Replace) can still be used, but we accept `returnDocument: 'before'` or `returnDocument: 'after'` as well, and consider `returnDocument` to be the primary way of specifying this option.

      Show
      (This may have some overlap with existing documentation changes.) We consider the db.coll.findAndModify() method deprecated, in favor of .findOneAnd(Delete,Update,Replace). The `returnNewDocument` option for each of .findOneAnd(Delete,Update,Replace) can still be used, but we accept `returnDocument: 'before'` or `returnDocument: 'after'` as well, and consider `returnDocument` to be the primary way of specifying this option.

      We want to include the upcoming driver + bson releases in mongosh. They contain breaking changes for which some adjustments will be necessary. We should also adjust our printable-bson code to drop `.fromString` in Decimal128 and Long printing as part of this.

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: