Showing results for 
Search instead for 
Did you mean: 

Mapping relation properties with unknown names (Spring Data Neo4j)

Node Clone

I'm not sure my problem can be supported. In my application, I want users to define their own properties for relations (they choose key and value). To retrieves those properties, I make use of @RelationshipProperties. It seems not possible to define an attribute of type Map<String, String> to harvest key value of all properties of the relation.

My question : is there a way to retrieves property we don't know the key in the class mapping?

For information :

  • org.springframework.boot.spring-boot-starter-data-neo4j:2.7.0

Thank you for your time.

Nodes 2022
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.