-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 1.43.3
-
Component/s: Embedded Shell
-
Environment:OS:
node.js / npm versions:
Additional info:
-
3
-
Not Needed
-
Developer Tools
This pipeline in the embedded shell in Compass causes and infinite loader. It works as expected in mongosh.
db.test.aggregate([ { $addFields: { newField: { $function: { body: function (name) { return 1; }, args: ["$name"], lang: "js" } } } } ])