@ Deprecated public CommandResult doEval ( final String code , final Object ... args ) { DBObject commandDocument = new BasicDBObject ( "$eval" , code ) . append ( "args" , asList ( args ) ) ; return executeCommand ( wrap ( commandDocument ) ) ; }
Evaluates JavaScript functions on the database server . This is useful if you need to touch a lot of data lightly in which case network transfer could be a bottleneck .