Support `distinct` when it comes to further association chaining
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
Hi @cheerfulstoic. Is this something I can try to tackle? if so, maybe some code pointers?
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