Hacker News new | ask | show | jobs
by int_19h 1358 days ago
If I'm reading this correctly, it doesn't handle object graph traversal - if you need it, you have to write your own JOIN manually, and then the library will wrap that. I would argue that graph traversal is one of the basic features of an ORM.
1 comments

In an ORM, you will write

  include: ['posts']
in SQL, you will write

  join posts on p.authorId = a.id
I would argue an ORM is more about getting the flat structure of the result set into an hierarchical set of objects with more complex types.