Pyorient : Querying a vertex in OrientDB

211 views Asked by At

this works

data = client.query("SELECT FROM Person WHERE id = '1000'")
print(data)

but this doesn't

results = graph.query(Person, name='Prakash')
print(results)

this throws an error saying

TypeError: query() got an unexpected keyword argument 'name'
1

There are 1 answers

1
lsavio On

Creating a graph db called "pydb", empty, (i use graphic interface with orientdb 2.2.28 in Windows 10) and then, using this code (runned in eclipse), you have the list of animal vertexs:

enter image description here

The result:

enter image description here

The guide is here: https://github.com/orientechnologies/pyorient