var query = CreateQuery()
.Select(x => x.C.E)
.OfType<V>()
.Where(v => v.W == 1111);
Should generated this:
Assert(query, 1, "{ $project: { 'C.E': 1, _id: 0 } }", "{ $match: { 'C.E._t': 'V' } }", "{ $match: { 'C.E.W': 1111 } }");
Rather, it generates this:
Assert(query, 1, "{ $project: { 'C.E': 1, _id: 0 } }", "{ $match: { 'C.E._t': 'V' } }", "{ $match: { 'W': 1111 } }");
- is related to
-
CSHARP-1429 Invalid query created when using unwind stage and match stage in Aggregate method
- Closed