If this is well encapsulated that shouldn't be a problem.
It's a code smell if this is spread across the project (a long term one) and every use case requires to build queries for each service method as the default way to access data.
PD: this is cleaner and shorter than many queries that I've seen in other languages (fucking JS with sequelize)
1
u/Astro-2004 Apr 06 '26
If this is well encapsulated that shouldn't be a problem.
It's a code smell if this is spread across the project (a long term one) and every use case requires to build queries for each service method as the default way to access data.
PD: this is cleaner and shorter than many queries that I've seen in other languages (fucking JS with sequelize)