Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-11

Implement Collection::deleteMany()

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.1.0
    • Affects Version/s: None
    • Component/s: None
    • None

      Unlike the 1.x driver API, the filter document parameter is always required. It may be empty (to match everything), but users must specify it.

      Usage example:

      $collection->deleteMany([]); // First positional argument is required criteria
      $collection->deleteMany(['x' => 1]);
      

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: