Details
-
Task
-
Resolution: Done
-
Blocker - P1
-
None
-
None
-
None
-
Windows
Description
Hi,
I am unable to work with db.Eval function.
After passing BsonDocument in EvalArgs, it throws "type cast error".
My code:
EvalArgs ea = new EvalArgs();
BsonJavaScript bjs = new BsonJavaScript("function()
");
ea.Code = bjs;
db.Eval(ea);
This returns nothing, while the code runs in mongo shell when directly executed.
Thanks
Anurag