Py2neo Api for Neo4j -


i playing around py2neoapi neo4j , can tell me how pull data graph using pull() method. can give me example.

i did following:

node1=node("person",name="kartieya"); graph().create(node1); graph().pull(node1); 

i recieving status 200 , i.e. working how going node1.name?

push , pull necessary changes on existing nodes. create statements carried out immediately.

from py2neo import graph, node graph = graph()  # note trailing ',' tuple unpacking # 'create' can create more 1 element @ once node1, = graph.create(node("person",name="kartieya")) 

to name property of node do:

print node1.properties['name'] 

if change property have use push:

node1["new_prop"] = "some_value" node1.push() 

pull needed if properties of node1 change on server , want synchronize local node1 instance.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -