Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4499

$pushAll should be replaced with $push + $each

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 7.0.0, 6.3.0
    • Affects Version/s: None
    • Component/s: None
    • None

      The $pushAll operator no longer works in MongoDB 3.6. It should be replaced with $push + $each (refer to docs: https://docs.mongodb.com/manual/reference/operator/update/push/)

      Additionally, the add_to_set method needs a corresponding version (perhaps "add_all_to_set") which adds the $each modifier. The codebase should be reviewed to make sure both $push and $addToSet are used with $each where appropriate.

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            johnnyshields Johnny Shields
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: