Do not use Bulk .remove operator

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 0.13.1
    • Affects Version/s: None
    • Component/s: Shell API
    • None
    • Iteration Barcelona
    • Needed
    • Hide

      The .remove() and .removeOne() bulk find ops are deprecated now (i.e. https://docs.mongodb.com/manual/reference/method/Bulk.find.remove/ and https://docs.mongodb.com/manual/reference/method/Bulk.find.removeOne/).

      They are replaced by functionally equivalent .delete() and .deleteOne() methods. .remove() and .removeOne() are only turned into aliases for those.

      This change was made with the assumption that the documentation for the new methods would be available under https://docs.mongodb.com/manual/reference/method/Bulk.find.delete/ and https://docs.mongodb.com/manual/reference/method/Bulk.find.deleteOne/, so let us know if that’s not going to be the case.

      Show
      The .remove() and .removeOne() bulk find ops are deprecated now (i.e. https://docs.mongodb.com/manual/reference/method/Bulk.find.remove/ and https://docs.mongodb.com/manual/reference/method/Bulk.find.removeOne/ ). They are replaced by functionally equivalent .delete() and .deleteOne() methods. .remove() and .removeOne() are only turned into aliases for those. This change was made with the assumption that the documentation for the new methods would be available under https://docs.mongodb.com/manual/reference/method/Bulk.find.delete/ and https://docs.mongodb.com/manual/reference/method/Bulk.find.deleteOne/ , so let us know if that’s not going to be the case.

      See NODE-2978

              Assignee:
              Anna Henningsen
              Reporter:
              Anna Henningsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: