I have an entity Post which contains a child collection IList. Now I need to get 10 last comments to all posts. Here is my initial impelementation:
_documentSession.Query<Post>().SelectMany(x => x.Comments).OrderByDescending(x => x.DateTime).Take(10).ToList();
But it doesn't work as RavenDb throws exception "SelectMany is not supported".
What is the right way to impelement it using RavenDb?