QueryProxyEnumerable¶
Methods related to returning nodes and rels from QueryProxy
Constants¶
Methods¶
- #==
Does exactly what you would hope. Without it, comparing bobby.lessons == sandy.lessons would evaluate to false because it would be comparing the QueryProxy objects, not the lessons themselves.
+ show/hide code
- #each
Just like every other <tt>each</tt> but it allows for optional params to support the versions that also return relationships. The <tt>node</tt> and <tt>rel</tt> params are typically used by those other methods but there’s nothing stopping you from using your_node.each(true, true) instead of your_node.each_with_rel.
+ show/hide code
- #each_rel
When called at the end of a QueryProxy chain, it will return the resultant relationship objects intead of nodes. For example, to return the relationship between a given student and their lessons:
+ show/hide codestudent.lessons.each_rel do |rel|
- #each_with_rel
When called at the end of a QueryProxy chain, it will return the nodes and relationships of the last link. For example, to return a lesson and each relationship to a given student:
+ show/hide codestudent.lessons.each_with_rel do |lesson, rel|
#fetch_result_cache
- #pluck
For getting variables which have been defined as part of the association chain
+ show/hide code
#result