| ▲ | tracker1 3 days ago | ||||||||||||||||||||||||||||||||||
In TS, I can still create a type for my result... const results : Promise<Foo[]> = ... I'm not sure what additional help you're getting. I'm just not a fan of ORMs as they tend to have hard edges in practice. | |||||||||||||||||||||||||||||||||||
| ▲ | pier25 3 days ago | parent [-] | ||||||||||||||||||||||||||||||||||
ORMs not only help with the result of the query but but also when writing queries. When I wrote SQL I was constantly checking table names, columns, and enums. With a good ORM like EF Core not only you get autocomplete, type checking, etc but dealing with relationships is much less tedious than with SQL. You can read or insert deeply nested entities very easily. Obviously ORMs and query builders won't solve 100% of your queries but they will solve probably +90% with much better DX. For years I used to be in the SQL-only camp but my productivity has increased substantially since I tried EF for C# and Drizzle for TS. | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||