public static CommandResult ExecuteJsShell(string jsShell, MongoServer mongoSvr)
{
var shellCmd = new BsonDocument
{
{ "$eval", new BsonJavaScript(jsShell)},
{ "nolock", true }
};
//必须nolock
var mongoCmd = new CommandDocument();
mongoCmd.AddRange(shellCmd);
return ExecuteMongoSvrCommand(mongoCmd, mongoSvr);
}