22 ms·
Speaking for Typescript and Mikro-ORM. I use the ORM extensively for regular operations and queries, but usually for searches with more complex queries, I do it
by topicseed 5y ago
Speaking for Typescript and Mikro-ORM. I use the ORM extensively for regular operations and queries, but usually for searches with more complex queries, I do it by hand (get PKs), and then load the entities by PK (I could skip that but it's to let the ORM handle the mapping).
ORMs generally have a "raw" escape route where you can just do it yourself? Or maybe it's just the one I use..
- beachy 5y agoIt's not just yours, it's common to most (virtually all?) ORMs, which makes these ideological arguments somewhat moot. Just use an ORM for mapping and for simple queries and hand crank the complex queries.