[Now we can use aggregate functions directly over the repository API](https://github.com/typeorm/typeorm/pull/9737)