Specifying the $sort order for a deleteOne

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: Laravel
    • None
    • None
    • PHP Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      Discussed in the doc PR: https://github.com/mongodb/laravel-mongodb/pull/2829#discussion_r1561325575

      Currently, when calling Concert::where('venue', 'Carnegie Hall')>orderBy('_id')>delete() the order is ignored. If there is many matching documents, we don't know which one will be deleted.

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

              Created:
              Updated:
              Resolved: