activegraph icon indicating copy to clipboard operation
activegraph copied to clipboard

Support `distinct` when it comes to further association chaining

Open cheerfulstoic opened this issue 7 years ago • 2 comments

If you do object.association.distinct.other_association, the distinct goes away.

This is probably good for the simple implementation, but we could have a WITH DISTINCT automatically go in there on the second association

cheerfulstoic avatar Jan 17 '17 21:01 cheerfulstoic

Hi @cheerfulstoic. Is this something I can try to tackle? if so, maybe some code pointers?

noamyogev84 avatar Sep 27 '18 08:09 noamyogev84

Hey @noamyogev84

I'm not currently maintaining the Neo4j.rb gems but I'd be happy to start you in the right direction. If you have a PR, though, somebody would need to be around to merge / release it ;)

has_n.rb is the main place for a lot of the association logic.

All of that is to support easy creation of QueryProxy objects. QueryProxy objects represent the generation of higher-level queries in ActiveNode and which wrap the lower level Query objects from the neo4j-core gem

And, of course, I would check out the Query class for the neo4j-core gem

cheerfulstoic avatar Sep 27 '18 11:09 cheerfulstoic