In [2]:
from libs.graph import graph
A simple test for neomodel library
In [3]:
graph.Zone.get_or_create({'name':'test'})
Out[3]:
Finding data objects in the graph which have a replica connection
In [4]:
dobj_with_replicas = graph.DataObject.nodes.has(replica=True)
In [9]:
for replicas in dobj_with_replicas:
print("Data Object:", replicas.filename, "with location:\n", replicas.location, "\n")
#print(replicas.replica.relationship())
In [4]:
#graph.clean_whole_database()
Out[4]: