Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1042

Shell swallows { background: true } options to aggregate

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: Shell API
    • Labels:
      None
    • Not Needed

      Problem Statement/Rationale

      What is going wrong?
      When background: true is specified as an option to aggregate, the mongosh shell swallows it and doesn't include it in the generated aggregate command that's sent to the server. This doesn't happen with the old mongo shell.

      Steps to Reproduce

      How could an engineer replicate the issue you’re reporting?
      Run a command such as the following:

      db.foo.aggregate([{ $out: { s3: { bucket: "david.golub", region: "us-east-1", filename: "bgtest", format: { name: "json" } } } }], { background: true })
      

      Expected Results

      What do you expect to happen?
      The aggregate command sent to the server should include background: true.

      Actual Results

      What do you observe is happening?
      The command sent to the server omits background: true.

      Additional Notes

      Any additional information that may be useful to include.

            Assignee:
            Unassigned Unassigned
            Reporter:
            david.golub@mongodb.com David Golub
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: