{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/970","labels_url":"https://api.github.com/repos/realm/realm-java/issues/970/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/970/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/970/events","html_url":"https://github.com/realm/realm-java/issues/970","id":62189412,"number":970,"title":"RealmQuery.equalsTo() support comparing to RealmObjects","user":{"login":"Den-Rimus","id":3531046,"avatar_url":"https://avatars.githubusercontent.com/u/3531046?v=3","gravatar_id":"","url":"https://api.github.com/users/Den-Rimus","html_url":"https://github.com/Den-Rimus","followers_url":"https://api.github.com/users/Den-Rimus/followers","following_url":"https://api.github.com/users/Den-Rimus/following{/other_user}","gists_url":"https://api.github.com/users/Den-Rimus/gists{/gist_id}","starred_url":"https://api.github.com/users/Den-Rimus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Den-Rimus/subscriptions","organizations_url":"https://api.github.com/users/Den-Rimus/orgs","repos_url":"https://api.github.com/users/Den-Rimus/repos","events_url":"https://api.github.com/users/Den-Rimus/events{/privacy}","received_events_url":"https://api.github.com/users/Den-Rimus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-java/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-03-16T19:46:33Z","updated_at":"2015-03-18T15:08:20Z","closed_at":null,"body":"I can't seem to be able to find anything about this (in library or in docs) though I can't believe no one raised this issue before. So if it's a duplicate - my pardon.\r\n\r\nI have a Pin class, that has Session session field. Both Types extend RealmObject.\r\n\r\nI need to find all pins that are from particular session, but I can't do realm.where(Pin.class).equalsTo(\"session\", session).findAll(); query.\r\n\r\nIs such query possible with realm?"},"comment":{"url":"https://api.github.com/repos/realm/realm-java/issues/comments/83015921","html_url":"https://github.com/realm/realm-java/issues/970#issuecomment-83015921","issue_url":"https://api.github.com/repos/realm/realm-java/issues/970","id":83015921,"user":{"login":"cmelchior","id":406066,"avatar_url":"https://avatars.githubusercontent.com/u/406066?v=3","gravatar_id":"","url":"https://api.github.com/users/cmelchior","html_url":"https://github.com/cmelchior","followers_url":"https://api.github.com/users/cmelchior/followers","following_url":"https://api.github.com/users/cmelchior/following{/other_user}","gists_url":"https://api.github.com/users/cmelchior/gists{/gist_id}","starred_url":"https://api.github.com/users/cmelchior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmelchior/subscriptions","organizations_url":"https://api.github.com/users/cmelchior/orgs","repos_url":"https://api.github.com/users/cmelchior/repos","events_url":"https://api.github.com/users/cmelchior/events{/privacy}","received_events_url":"https://api.github.com/users/cmelchior/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T15:08:20Z","updated_at":"2015-03-18T15:08:20Z","body":"@ISherlockHolmes \r\nI might have been a bit hasty. Implementing this functionality properly require the use of some functions in the core database as it already supports this use case, so asking you to look at it would probably be a bit unfair. On the positive side that probably means it is pretty fast to implement."}}