3 ms·
The only part of ORMs I liked was the ability to dynamically build queries. You’re right that a query would have to return the same columns (for common downstre
by mbreese 4y ago
The only part of ORMs I liked was the ability to dynamically build queries. You’re right that a query would have to return the same columns (for common downstream processing), but a query builder can make adding conditions much easier.
For example, if you’re adding filtering to a product list. The query will always return the product id, name, image url and description. But you might have multiple filters (in stock, blue, etc). The query builder can make that process easier and less error prone.
Same with pagination, depending on how you do it.