Aggregate collection helper does not support ADL options

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      The background option for ADL is not passed to the server as noted in MONGOSH-932 when using the collection aggregate helper:

      db.coll.aggregate([...], { background: true })

      Taking a look at the code, it seems that AggregateOperation.execute only sets a very specific set of options on the command object before passing that to the server. This should at least include background. As outlined in MONGOSH-932 an upcoming change by MHOUSE-1267 will require us to also support further options at least from the shell side.

              Assignee:
              Unassigned
              Reporter:
              Michael Rose (Inactive)
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: