I am trying to follow the docs
http://readthedocs.org/docs/neo4j-rest-client/en/latest/indices.html
I expect the index query to return node, but instead return "Iterable: Node":
db = GraphDatabase("http://localhost:7474/db/data")
playerIndex = db.nodes.indexes.get("index1")
playerNode = db.nodes.create(player_id = "Homer")
playerIndex.add("player_id", "Homer", playerNode)
print playerIndex["player_id"]["Homer"], "\n", playerNode
prints:
<Neo4j Iterable: Node>
<Neo4j Node: http://localhost:7474/db/data/node/157>
How can I get the results of a neo4jrestclient index query to return a Node like the second line?
source
share