Export to language can't export DBRef in an aggregation pipeline

XMLWordPrintableJSON

    • None
    • None

      Spotted while trying to reproduce https://jira.mongodb.org/browse/COMPASS-3030:

      The query

      ```

      {x: DBRef('ns', ObjectId())}

      ```

      can be "exported to language" from the CRUD view / toolbar, but fails when exported from an aggregation stage. The following error is displayed in the export to language dialog window:

      Argument type mismatch: 'DBRef' expects types ObjectId but got type _string for argument at index 1

              Assignee:
              Unassigned
              Reporter:
              Maurizio Casimirri
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: