Details
-
Bug
-
Resolution: Done
-
Minor - P4
-
v1.0
-
None
Description
There is an extra curly brace here:
http://docs.mongodb.org/manual/reference/commands/#eval
|
db.eval( function { return 3+3 } } );
|
|
|
should be:
|
|
|
db.eval( function() { return 3+3 } );
|
There is no mention that the helper does not support the nolock option and needs to be run using the runCommand syntax.
Should show an actual example of running db.eval as a command, e.g.,
db.runCommand( { $eval: function() { return 3+3 }, nolock:true } );
|