Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-8035

Aggregation with $function causes embedded shell to infinite load

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.43.3
    • Component/s: Embedded Shell
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Developer Tools
    • 3

      This pipeline in the embedded shell in Compass causes and infinite loader. It works as expected in mongosh.

      db.test.aggregate([
        {
          $addFields: {
              newField: {
                $function: {
                  body: function (name) {
                    return 1;
                  },
                  args: ["$name"],
                  lang: "js"
                }
              }
            }
        }
      ]) 

            Assignee:
            Unassigned Unassigned
            Reporter:
            rhys.howell@mongodb.com Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: