I have a python code quering Neo4j REST API, so when run this code
q = ("MATCH (n:Person)-[rel]->(a:Address), RETURN rel results = self.db.query(q, returns=(client.Relationship)) print(results)
The output is the URL below http://localhost:7474/db/data/relationship/3602>
After clicking the URL, I can see the correct relationship info listed below in a browser. and I am trying to extract the value of "type" which is "RESIDENT_Of"
But when I change the code to
print(results['type') I get following error:
I have tried all combinations such as below but still keep getting the same error.
results['Relationship info]['type'] results['Properties']['Relationship info]['type']
Any idea what key I should be using on results to get the string description of relationship type?