neo4j / sdn-rx

Nextgen Spring Data module for Neo4j supporting (not only) reactive data access and immutable support
https://neo4j.github.io/sdn-rx
Apache License 2.0
65 stars 23 forks source link

Allow findBy on map relationships #262

Closed benkuly closed 4 years ago

benkuly commented 4 years ago

I want to query relationship nodes when they are defined as map.

Given NodeA - RelationsshipProperties -> NodeB:

@Node("NodeA") 
public class NodeA {
        @Id  
        private final String title;

        @Relationship(type = "RELATED_TO", direction = OUTGOING) 
        private Map<NodeB, RelationshipProperties> related = new HashMap<>();
// ...
}

@Node("NodeB") 
public class NodeB {
        @Id  
        private final String title;

        @Relationship(type = "RELATED_TO", direction = INCOMING) 
        private Map<NodeA, RelationshipProperties> related = new HashMap<>();
// ...
}

A Repository Interface-Method Flux<NodeA> findByRelatedTitle(String title); does currently try to access not present title on RelationsshipProperties instead of NodeBs title.

michael-simons commented 4 years ago

We're discussing atm how we could enhance our @RelationshipProperties-model to make this possible.

meistermeier commented 4 years ago

Since we are in a migration process to the original Spring Data Neo4j and have to archive this repository, the issue also go migrated to: https://jira.spring.io/browse/DATAGRAPH-1343 Please watch or comment on the issue in Jira for further communication.