-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: 1.8.3
-
Component/s: Linq
-
None
-
Environment:.NET
-
Fully Compatible
I would love to see this improvement make it into v2.0.
Consider this basic class:
class Book
{
// ....
public List<Ratings> Ratings
}
And this query:
var allGoodRatings =
from b in mongo.Books
from r in b.Ratings
where r.Stars >= 4
orderby r.Stars descending
select r;
AFAIK, this crashes with SelectMany not supported. It would be super easy to implement in the drive and as long as the second set is within each document it references, this could happen on the server and we don't have to resort to hacks where we double query it once on the db and then again on the client.
- duplicates
-
CSHARP-556 SelectMany LINQ operator not supported
- Closed
- is related to
-
CSHARP-456 Support linq projections to only pull back referenced fields.
- Closed