I am a junior developer and I need help with this requirement.
The structure that I am working is this:

In a previous version of mongo drivers, the implementation returned logs grouping as follows:
but with a lot of logs, the system returned an exception. Now, based on https://kevsoft.net/2020/01/27/paging-data-in-mongodb-with-csharp.html, I updated drivers to be able to implement this with paging as follow:

With this implementation, the system returned the correct logs according to the page but without grouping https://drive.google.com/file/d/17aOQo8cdO8DBS4xrGMMmhI62QkCfGv18/view?usp=sharing
I need to group the result with the same condition that I used in previous version:
https://drive.google.com/file/d/1zO27Y85r-49Lm9ZRC1FQI1A7vLvBRfBe/view?usp=sharing
¿Its there a way to do this with facets?
no comments yet
Be the first to share what you think!
C# devs
null reference exceptions

source