Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
05-12-2020 10:43 AM
Hello guys,
How do I get all the labels of the relationships with python neo4j-driver 1.7.6, I'm using query = (MATCH (n)-[r]-(m) WHERE n.doc = '1234' RETURN r )
My database got many relationships for a node (Ex: [:Buyer], [:Seller], [:Owner] ... ) but always returns [:Buyer]
thanks
05-12-2020 10:52 AM
Hi @pedrochagasjr,
Welcome to the Community!!
05-12-2020 11:03 AM
type (r) .... works !!! I didn't understand the third item.
Thanks
05-12-2020 11:09 AM
Third one is about labels
like in the below code I have two types of nodes (Labels of nodes) Person and Company.
MATCH (n:Person)-[r]-(m:Company)
rather than
MATCH (n)-[r]-(m)
05-12-2020 11:17 AM
ok ... thank you !!!
All the sessions of the conference are now available online