{"action":"created","issue":{"url":"https://api.github.com/repos/neo4jrb/neo4j/issues/678","labels_url":"https://api.github.com/repos/neo4jrb/neo4j/issues/678/labels{/name}","comments_url":"https://api.github.com/repos/neo4jrb/neo4j/issues/678/comments","events_url":"https://api.github.com/repos/neo4jrb/neo4j/issues/678/events","html_url":"https://github.com/neo4jrb/neo4j/issues/678","id":55597121,"number":678,"title":"Again about DRY a query","user":{"login":"pdipietro","id":3890316,"avatar_url":"https://avatars.githubusercontent.com/u/3890316?v=3","gravatar_id":"","url":"https://api.github.com/users/pdipietro","html_url":"https://github.com/pdipietro","followers_url":"https://api.github.com/users/pdipietro/followers","following_url":"https://api.github.com/users/pdipietro/following{/other_user}","gists_url":"https://api.github.com/users/pdipietro/gists{/gist_id}","starred_url":"https://api.github.com/users/pdipietro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdipietro/subscriptions","organizations_url":"https://api.github.com/users/pdipietro/orgs","repos_url":"https://api.github.com/users/pdipietro/repos","events_url":"https://api.github.com/users/pdipietro/events{/privacy}","received_events_url":"https://api.github.com/users/pdipietro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-27T09:58:01Z","updated_at":"2015-02-07T20:05:28Z","closed_at":null,"body":"Adding complexity: in a previous suggestion #670  Chris wrote as following:\r\n\r\n    results = Object.as(:object).query.proxy_as_optional(Object, :object).owners(:owner).pluck(:object, 'collect(owner)')\r\n    @objects, @owners = results.map { |row| row[0], row[1] }\r\nBut, how can I find all the objects with a (A OR B) relationship with another?\r\nExample: only Groups when a User (Owns or Participates)?"},"comment":{"url":"https://api.github.com/repos/neo4jrb/neo4j/issues/comments/73380518","html_url":"https://github.com/neo4jrb/neo4j/issues/678#issuecomment-73380518","issue_url":"https://api.github.com/repos/neo4jrb/neo4j/issues/678","id":73380518,"user":{"login":"subvertallchris","id":4097271,"avatar_url":"https://avatars.githubusercontent.com/u/4097271?v=3","gravatar_id":"","url":"https://api.github.com/users/subvertallchris","html_url":"https://github.com/subvertallchris","followers_url":"https://api.github.com/users/subvertallchris/followers","following_url":"https://api.github.com/users/subvertallchris/following{/other_user}","gists_url":"https://api.github.com/users/subvertallchris/gists{/gist_id}","starred_url":"https://api.github.com/users/subvertallchris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subvertallchris/subscriptions","organizations_url":"https://api.github.com/users/subvertallchris/orgs","repos_url":"https://api.github.com/users/subvertallchris/repos","events_url":"https://api.github.com/users/subvertallchris/events{/privacy}","received_events_url":"https://api.github.com/users/subvertallchris/received_events","type":"User","site_admin":false},"created_at":"2015-02-07T20:05:28Z","updated_at":"2015-02-07T20:05:28Z","body":"These are not stupid questions. I'm in the middle of something right now but I've been meaning to write a blog post about this. I will write something up and link you a little later!\r\n\r\nShort answer, though: QueryProxy has ActiveNode models and associations as its focus; Core::Query is a Cypher DSL. QueryProxy is an abstraction of the Cypher DSL, it gives shortcuts for common tasks. There are two approaches because QueryProxy has more \"magic.\" It is \"easier\" but also gives you less control."}}