py2neo

Don't understand why this AttributeError: 'Graph' object has no attribute 'merge_one' is occurring

Don't understand why this AttributeError: 'Graph' object has no attribute 'merge_one' is occurring Question: I’m following a tutorial, and I’m using the last python2 (homebrew) with PyCharm (with project interpreter configured) – But I’m stuck in this part: from py2neo import Graph, Node graph = Graph() nicole = Node(“Person”, name=”Nicole”) graph.create(nicole) graph.delete(nicole) nicole = graph.merge_one(“Person”, …

Total answers: 2

py2neo: Graph.find_one with multiple key/values

py2neo: Graph.find_one with multiple key/values Question: I have some trouble with the py2neo find and find_one (http://py2neo.org/2.0/essentials.html) What I want in Cypher is: MATCH (p:Person) WHERE p.name=’Alice’ AND p.age=22 RETURN p Say, where there are more than one key/value set (eg. if there are more than one ‘Alice’ in the graph). My problem is that …

Total answers: 3