I am trying join two mongoDB collections in my c# code. and trying to follow this example.
But my code give me error on following line. saying MapReduceOptionsBuilder couldnot be found.
var options = new MapReduceOptionsBuilder();
options.SetOutput(MapReduceOutput.Inline);
options.SetOutput(MapReduceOutput.Reduce("result"));
var result = cLifeExpectancy.MapReduce(life_expect_map, r, options);
result = cEconomicAssistance.MapReduce(us_econ_map, r, options);
I have following Nuget install in my project:
- MongoDB.Bson
- MongoDB.Driver
- MongoDB.Driver.core
following References added.
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Driver;
using MongoDB.Driver.Builders;
Can someone tell me what am I missing? or share some other example of joining MongoDB collection in C#.net. or alternative of MapReduceOptionsBuilder.