$out to existing DB doesn't work if DB hasn't already been opened from Data Explorer

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Data Explorer
    • Not Needed
    • None
    • Compass

      When using the $out aggregation stage to a collection in an existing DB, hitting the run button does nothing no error is shown.

      $out requires knowledge of the existing collections. $out works just fine if the DB doesn't yet exist or if it has already been opened in this Data Explorer session

      To reproduce, go to the aggregation tab for a collectio. Use a $out aggregation stage targeting any collection in an existing DB that you have NOT opened during this Data Explorer session. Notice that hitting the run button does nothing.

      In the console, you'll see the error

      TypeError: Cannot read properties of undefined (reading 'listCollections')

            Assignee:
            Unassigned
            Reporter:
            Jack Weir
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: