问题
I need to get "friends of friends" of User
. So, friend(rel_length: 2)
doesn't work (ignores method), returning friends.
class User
include Neo4j::ActiveNode
...
has_many :out, :friend, rel_class: Friend
...
end
class Friend
include Neo4j::ActiveRel
from_class User
to_class User
type 'friend'
property :activity, type: String
property :relation, type: String
property :token, type: String
end
回答1:
For anybody finding this later the reason was because he was using an older version of the gem (see the comments)
来源:https://stackoverflow.com/questions/35192885/method-rel-length-in-neo4j-rb-doesnt-work