Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-752

Do not use Bulk .remove operator

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.13.1
    • Affects Version/s: None
    • Component/s: Shell API
    • Labels:
      None
    • 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.
    • Iteration Barcelona

      See NODE-2978

            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: