Open aekobear opened 5 years ago
The documentation for Query.set_props() says:
Works the same as the #set method, but when given a nested array it will set properties rather than setting entire objects Examples: # Creates a query representing the cypher: MATCH (n:Person) SET n.age = 19 Query.new.match(n: :Person).set_props(n: {age: 19})
Works the same as the #set method, but when given a nested array it will set properties rather than setting entire objects
Examples:
# Creates a query representing the cypher: MATCH (n:Person) SET n.age = 19 Query.new.match(n: :Person).set_props(n: {age: 19})
However, the exact opposite is true:
Query.new.match(n: :Person).set_props(n: {age: 19}).to_cypher # => "MATCH (n: `Person`) SET n = {n_set_props}" Query.new.match(n: :Person).set(n: {age: 19}).to_cypher # => "MATCH (n: `Person`) SET n.`age` = {setter_n_age}"
Neo4j database version: 3.5.1 neo4j gem version: N/A neo4j-core gem version: 9.0.0
neo4j
neo4j-core
The documentation for Query.set_props() says:
However, the exact opposite is true:
Runtime information:
Neo4j database version: 3.5.1
neo4j
gem version: N/Aneo4j-core
gem version: 9.0.0