{"action":"created","issue":{"url":"https://api.github.com/repos/typeorm/typeorm/issues/2125","repository_url":"https://api.github.com/repos/typeorm/typeorm","labels_url":"https://api.github.com/repos/typeorm/typeorm/issues/2125/labels{/name}","comments_url":"https://api.github.com/repos/typeorm/typeorm/issues/2125/comments","events_url":"https://api.github.com/repos/typeorm/typeorm/issues/2125/events","html_url":"https://github.com/typeorm/typeorm/issues/2125","id":322232075,"node_id":"MDU6SXNzdWUzMjIyMzIwNzU=","number":2125,"title":"Deep relation when querying","user":{"login":"JCWolf","id":4083652,"node_id":"MDQ6VXNlcjQwODM2NTI=","avatar_url":"https://avatars3.githubusercontent.com/u/4083652?v=4","gravatar_id":"","url":"https://api.github.com/users/JCWolf","html_url":"https://github.com/JCWolf","followers_url":"https://api.github.com/users/JCWolf/followers","following_url":"https://api.github.com/users/JCWolf/following{/other_user}","gists_url":"https://api.github.com/users/JCWolf/gists{/gist_id}","starred_url":"https://api.github.com/users/JCWolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JCWolf/subscriptions","organizations_url":"https://api.github.com/users/JCWolf/orgs","repos_url":"https://api.github.com/users/JCWolf/repos","events_url":"https://api.github.com/users/JCWolf/events{/privacy}","received_events_url":"https://api.github.com/users/JCWolf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-05-11T09:35:46Z","updated_at":"2018-06-07T13:03:28Z","closed_at":"2018-05-14T15:56:45Z","author_association":"NONE","body":"**Issue type:**\r\n\r\n[x] question\r\n[ ] bug report\r\n[ ] feature request\r\n[ ] documentation issue\r\n\r\n**Database system/driver:**\r\n\r\n[ ] `cordova`\r\n[ ] `mongodb`\r\n[ ] `mssql`\r\n[x] `mysql` / `mariadb`\r\n[ ] `oracle`\r\n[ ] `postgres`\r\n[ ] `sqlite`\r\n[ ] `sqljs`\r\n[ ] `react-native`\r\n\r\n**TypeORM version:**\r\n\r\n[x] `latest`\r\n[ ] `@next`\r\n[ ] `0.x.x` (or put your version here)\r\n\r\n**Steps to reproduce or a small repository showing the problem:**\r\n\r\nIt is possible to pass a deep relation when querying? For example, I have a `User`, a `User` can have many `cars` and a `Car` has one `Make`. When I query the `User` I want to get his `cars` and each `Car`'s `Make`. I don't want to use Eager or Lazy loading. I'm thinking something like:\r\n\r\n```ts\r\n$users = User.find({relations : ['cars.make']})\r\n```\r\n\r\nIf no, are there any plans for implementing it in the near future?\r\nAs an example, I saw this behavior in the [PHP Laravel Framework](https://stackoverflow.com/questions/30231862/laravel-eloquent-has-with-wherehas-what-do-they-mean?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa)\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/typeorm/typeorm/issues/comments/395412448","html_url":"https://github.com/typeorm/typeorm/issues/2125#issuecomment-395412448","issue_url":"https://api.github.com/repos/typeorm/typeorm/issues/2125","id":395412448,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTQxMjQ0OA==","user":{"login":"RDeluxe","id":2767681,"node_id":"MDQ6VXNlcjI3Njc2ODE=","avatar_url":"https://avatars3.githubusercontent.com/u/2767681?v=4","gravatar_id":"","url":"https://api.github.com/users/RDeluxe","html_url":"https://github.com/RDeluxe","followers_url":"https://api.github.com/users/RDeluxe/followers","following_url":"https://api.github.com/users/RDeluxe/following{/other_user}","gists_url":"https://api.github.com/users/RDeluxe/gists{/gist_id}","starred_url":"https://api.github.com/users/RDeluxe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RDeluxe/subscriptions","organizations_url":"https://api.github.com/users/RDeluxe/orgs","repos_url":"https://api.github.com/users/RDeluxe/repos","events_url":"https://api.github.com/users/RDeluxe/events{/privacy}","received_events_url":"https://api.github.com/users/RDeluxe/received_events","type":"User","site_admin":false},"created_at":"2018-06-07T13:03:28Z","updated_at":"2018-06-07T13:03:28Z","author_association":"NONE","body":"@pleerock I'm puzzled, shouldn't\r\n```ts\r\n$users = User.find({relations : ['cars.make']})\r\n```\r\nworks if `cars` is marked as `eager: true` ? It does not in our case"}}
{"actor":{"display_login":"RDeluxe"}}