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

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

    • 3

      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 Unassigned
            Reporter:
            maurizio.casimirri@mongodb.com Maurizio Casimirri
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: