It would make life easier to help look at your issues if you provided example data, preferably in a mongo playground environment with data setup.