Open enryson opened 1 year ago
Hi from 2024. We are still waiting for this feature.
Up, we definitely need this feature.
Up, we definitely need this feature.
Bump, very needed feature
very needed... an obvious feature
Would be much appreciated! Probably the main reasons we use createQueryBuilder
instead of find
methods.
Add Group By on entityManager.find operation
Is only possible using QueryBuilder
I preferred workin with entityManager, and would be very nice to have this implemented on. Sequelize and Primsma have this feature, i have more that 40 applications using TypeORM and all of them are using entityManager and we have some components too.
The Solution
make something similar to Sequelize. like:
userRepository.find({ groupBy: "ColumName", })
Considered Alternatives
On my case this implementation will help on my projects, and will benefit new projects. I know that is possible by using query builder, but on my case using repository the implementation is cleaner and more friendly.
Additional Context
On my work i have more that 130 developers that will benefit with this change. with more that 40 projects.
(first request on this project and sorry if my English isn't 100% accurate)
Relevant Database Driver(s)
aurora-mysql
aurora-postgres
better-sqlite3
cockroachdb
cordova
expo
mongodb
mysql
nativescript
oracle
postgres
react-native
sap
spanner
sqlite
sqlite-abstract
sqljs
sqlserver
Are you willing to resolve this issue by submitting a Pull Request?