-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Export to Language
-
None
-
3
-
Not Needed
-
Iteration Grouper
Problem Statement/Rationale
Exporting simple aggregation pipeline to Node.js doesn't work with recent versions of MongoDB Node.js driver (eg. 4.6.0).
Steps to Reproduce
Export pipeline to Node.js (selecting "Include Import Statements" and "Include Driver Syntax") and then run with a recent version of Node.js driver.
Expected Results
The exported script should execute cleanly.
Actual Results
You will likely see the following error being raised:
/path/to/node_modules/mongodb/lib/collection.js:372 throw new error_1.MongoInvalidArgumentError('Argument "options" must not be function'); ^
Additional Notes
Installing an older version of the driver (eg. 3.6.12) allows the script to execute without issue.
Can we please have this code updated to work with both older and newer versions of the driver?
- related to
-
COMPASS-4897 Update export to language syntax to node driver v6
- Closed