Pyorient:在OrientDB中查询顶点

时间:2018-08-06 08:01:11

标签: orientdb pyorient

这有效

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

但这不是

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

这会引发错误提示

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

1 个答案:

答案 0 :(得分:0)

创建一个名为“ pydb”的图形数据库,为空(我在Windows 10中将图形界面与Orientdb 2.2.28配合使用),然后使用此代码(在Eclipse中运行),得到动物顶点列表:

enter image description here

结果:

enter image description here

指南在这里:https://github.com/orientechnologies/pyorient

相关问题