-
Type: Bug
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: 1.32.6
-
Component/s: Aggregation pipeline, Export to Language, Import/Export
-
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