Assert that option "sort" is not used with bulk updateMany and deleteMany

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Bulk API
    • None
    • PHP Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      PHPC tests on legacy bulkwrite have a test that the option "sort" is not used when "multi" is true.

      https://github.com/mongodb/mongo-php-driver/blob/v2.x/tests/bulk/bulkwrite-update_error-009.phpt 

      To prevent such programmer error, we can reject the usage of the option "sort" in methods "updateMany" and "deleteMany" of ClientBulkWrite.

              Assignee:
              Unassigned
              Reporter:
              Jérôme Tamarelle
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: