lib/neo4j/active_rel/persistence.rb in neo4j-8.1.1 vs lib/neo4j/active_rel/persistence.rb in neo4j-8.1.2

- old
+ new

@@ -38,11 +38,11 @@ # Increments concurrently a numeric attribute by a centain amount # @param [Symbol, String] name of the attribute to increment # @param [Integer, Float] amount to increment def concurrent_increment!(attribute, by = 1) - increment_by_query! query_as(:n), attribute, by, :r + increment_by_query! query_as(:r), attribute, by, :r end def create_model validate_node_classes! rel = _create_rel @@ -76,10 +76,10 @@ def load_entity(id) query_as(id).pluck(:r).first end def query_as(neo_id, var = :r) - Neo4j::ActiveBase.new_query.match("()-[#{var}]-()").where(var => {neo_id: neo_id}) + Neo4j::ActiveBase.new_query.match("()-[#{var}]->()").where(var => {neo_id: neo_id}) end end def create_method self.class.create_method