lib/neo4j/active_node/query.rb in neo4j-5.2.0 vs lib/neo4j/active_node/query.rb in neo4j-5.2.1
- old
+ new
@@ -11,10 +11,10 @@
#
# @example Return the names of all of Mike's friends
# # Generates: MATCH (mike:Person), mike-[:friend]-friend WHERE ID(mike) = 123 RETURN friend.name
# mike.query_as(:mike).match('mike-[:friend]-friend').return(friend: :name)
#
- # @param var [Symbol, String] The variable name to specify in the query
+ # @param node_var [Symbol, String] The variable name to specify in the query
# @return [Neo4j::Core::Query]
def query_as(node_var)
self.class.query_as(node_var, false).where("ID(#{node_var})" => self.neo_id)
end