I'm starting with Neo4J. For a given node I want to list Outgoing & Incoming relationships.
I do this :
// List Outgoing & Incoming relations for a node // Outgoing MATCH (s)-[r]->(t) WHERE s.name = 'f4b1' RETURN t.name , 'Out' as `relations` UNION ALL // Incoming MATCH (t)<-[r]-(s) WHERE t.name = 'f4b1' RETURN t.name , 'In' as `relations`
Is this the best way?