[COMPASS-6000] Export to language can't export DBRef in an aggregation pipeline Created: 07/Aug/22  Updated: 14/Dec/22

Status: Open
Project: Compass
Component/s: Aggregation pipeline, Export to Language, Import/Export
Affects Version/s: 1.32.6
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Maurizio Casimirri Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Story Points: 3

 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


Generated at Wed Feb 07 22:41:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.