public void TestFinalize()
        {
            var options  = MapReduceOptions.SetFinalize("code");
            var expected = "{ \"finalize\" : { \"$code\" : \"code\" } }";

            Assert.AreEqual(expected, options.ToJson());
        }
Beispiel #2
0
        public MapReduceResult MapReduce <T>(IMongoQuery query, string map, string reduce, string finalize)
        {
            var _options = MapReduceOptions.SetFinalize(finalize).SetOutput(MapReduceOutput.Inline);

            return(MapReduce <T>(query, map, reduce, _options));
        }