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

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

    XMLWordPrintable

Details

    • Up for triaging

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            maurizio.casimirri@mongodb.com Maurizio Casimirri
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: