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", "name", "Nicole")
Error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'Graph' object has no attribute 'merge_one'
I already checked the documentation and it seems that I'm doing everything ok . I tried to uninstall and install last version of py2neo but with no success. How I solve this problem?
Expected behavior: Running that command from the python2 console: If that Person exists don't duplicate it but change its values, if don't exist create it.