It might be because mongodb is trying to group certain fields but it’s missing some context, you can try adding a full projection of the usefull fields before grouping in the aggregate pipeline.
It might be because mongodb is trying to group certain fields but it’s missing some context, you can try adding a full projection of the usefull fields before grouping in the aggregate pipeline.