protected void debugTagsRelations() { try (Transaction tx = getDatabase().beginTx()) { getDatabase().findNodes(Label.label("Tag")).forEachRemaining(node -> { node.getRelationships(RelationshipType.withName("IS_RELATED_TO")).forEach(relationship -> { System.out.println(node.getAllProperties()); System.out.println(relationship.getOtherNode(node).getAllProperties()); System.out.println(relationship.getProperty("type")); }); }); tx.success(); } } }