In Neo4j, I have relation (p:Person)-[:HAS_DOCUMNET]->(d:Document) and Required only 1 row data per person (personId and documentType) I required to develop query output on the basis of below priority condition
1)If documentType="Passport" is present...