0

Using MongoDB C# Driver 2.0 fluent API for Aggregate with Unwind operator, the reference documentation (http://mongodb.github.io/mongo-csharp-driver/2.0/reference/driver/crud/reading/#unwind) instructs to use the following

An $unwind stage is defined using the Unwind method and its overloads. Because $unwind is a type of projection, you must provide a return type.

Unfortunately it does not say how you should provide the type.

Does anyone have an idea?

Neil Lunn
  • 148,042
  • 36
  • 346
  • 317
  • 1
    It also says __"An $unwind stage is defined using the Unwind method and its overloads. Because $unwind is a type of projection, you must provide a return type, although not specifying one will use the overload that projects into a BsonDocument."__ Take a look at the API documentation and that might clear it up http://api.mongodb.org/csharp/2.0/html/M_MongoDB_Driver_IAggregateFluent_1_Unwind__1.htm – Ron Beyer Apr 18 '15 at 16:22
  • Thanks. Sometimes a little "look one more time..." works... – user4804933 Apr 18 '15 at 18:31

0 Answers0