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

Implement Collection::deleteOne()

    • 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->deleteOne([]); // First positional argument is required criteria
      $collection->deleteOne(['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: