{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/3447","repository_url":"https://api.github.com/repos/realm/realm-cocoa","labels_url":"https://api.github.com/repos/realm/realm-cocoa/issues/3447/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-cocoa/issues/3447/comments","events_url":"https://api.github.com/repos/realm/realm-cocoa/issues/3447/events","html_url":"https://github.com/realm/realm-cocoa/issues/3447","id":149032454,"number":3447,"title":"How can I fetch a realm tree with single leaves?","user":{"login":"edias","id":1180618,"avatar_url":"https://avatars.githubusercontent.com/u/1180618?v=3","gravatar_id":"","url":"https://api.github.com/users/edias","html_url":"https://github.com/edias","followers_url":"https://api.github.com/users/edias/followers","following_url":"https://api.github.com/users/edias/following{/other_user}","gists_url":"https://api.github.com/users/edias/gists{/gist_id}","starred_url":"https://api.github.com/users/edias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edias/subscriptions","organizations_url":"https://api.github.com/users/edias/orgs","repos_url":"https://api.github.com/users/edias/repos","events_url":"https://api.github.com/users/edias/events{/privacy}","received_events_url":"https://api.github.com/users/edias/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-cocoa/labels/T:Help","name":"T:Help","color":"cc317c"}],"state":"closed","locked":false,"assignee":{"login":"jpsim","id":474794,"avatar_url":"https://avatars.githubusercontent.com/u/474794?v=3","gravatar_id":"","url":"https://api.github.com/users/jpsim","html_url":"https://github.com/jpsim","followers_url":"https://api.github.com/users/jpsim/followers","following_url":"https://api.github.com/users/jpsim/following{/other_user}","gists_url":"https://api.github.com/users/jpsim/gists{/gist_id}","starred_url":"https://api.github.com/users/jpsim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpsim/subscriptions","organizations_url":"https://api.github.com/users/jpsim/orgs","repos_url":"https://api.github.com/users/jpsim/repos","events_url":"https://api.github.com/users/jpsim/events{/privacy}","received_events_url":"https://api.github.com/users/jpsim/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-04-18T03:46:30Z","updated_at":"2016-05-03T21:53:36Z","closed_at":"2016-05-03T13:25:04Z","body":"I have the following scenario:\r\n\r\n```\r\nA\r\n|--B - C - D\r\n       |--E - F - G\r\n              |--H - I\r\n```\r\n\r\n\"A\" object contains a collection of objects (\"B\", \"C\", \"D\"), \"C\" contains (\"E\", \"F\", \"G\") and \"F\" contains (\"H\", \"I\").\r\n\r\nI would like to make a query on \"I\" and fetch only it's parents until the root of the tree, in this case until the \"A\" object.\r\n\r\nThe result would be something like this:\r\n\r\nI - F - C - A\r\n\r\nAlso, please keep in mind that siblings nodes should not be included. For example object \"F\" should only contains object \"I\", object \"C\" should only contains object \"F\" and object \"A\" should only contains object \"C\".\r\n\r\nDoes anyone have any idea on how could I achieve that?\r\n\r\nAny help would be welcome!\r\n\r\nThanks\r\n"},"comment":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/comments/216676302","html_url":"https://github.com/realm/realm-cocoa/issues/3447#issuecomment-216676302","issue_url":"https://api.github.com/repos/realm/realm-cocoa/issues/3447","id":216676302,"user":{"login":"edias","id":1180618,"avatar_url":"https://avatars.githubusercontent.com/u/1180618?v=3","gravatar_id":"","url":"https://api.github.com/users/edias","html_url":"https://github.com/edias","followers_url":"https://api.github.com/users/edias/followers","following_url":"https://api.github.com/users/edias/following{/other_user}","gists_url":"https://api.github.com/users/edias/gists{/gist_id}","starred_url":"https://api.github.com/users/edias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edias/subscriptions","organizations_url":"https://api.github.com/users/edias/orgs","repos_url":"https://api.github.com/users/edias/repos","events_url":"https://api.github.com/users/edias/events{/privacy}","received_events_url":"https://api.github.com/users/edias/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T21:53:36Z","updated_at":"2016-05-03T21:53:36Z","body":"Thanks @jpsim "}}