Combining different types of operation into a single Bulkwoperation should throw error

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Trivial - P5
    • None
    • Affects Version/s: 6.3.2
    • Component/s: None
    • None
    • Server Triage
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Actual Behaviour

      Recently, I combined different types of operations, such as updateMany and deleteMany, into a single operation in the `bulkWrite` command, hoping it would work as I didn't find any warnings/tips in the [documentation|https://www.mongodb.com/docs/manual/reference/method/db.collection.bulkWrite/.]

       

      When I ran it via a MongoShell script, it ran successfully without any error. But after an hour, I realised that all the operation counts in the result were zero.

       

      When I consulted the MongoDB AI, it also clarified that it's not allowed.

      Expected Behaviour

       

      The `bulkWrite` operation should fail and throw some error.

       

            Assignee:
            Jeffrey Ho
            Reporter:
            Shashank Agrawal
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: