Using DynamicLabels in Neo4jRepository SaveAll

Hi there,

I am trying to insert/update nodes with Neo4jNodeRepository SaveAll function and add labels with the @DynamicLabels annotation. All nodes are inserted into the database but without the labels.
When I use the Save function the dynamic Labels are added to the nodes.

When I look in de implementation of the SaveAll function in, there seems to be no implementation for Dynamic labels. In de Save (saveImpl) there is a call to determineDynamicLabels. Is this by design? Is it possible to add dynamic labels to the saveAll function as well?

Thanks in advance,


Thanks for pointing me to this. You are right, it was "just missing". I targeted it with this issue Dynamic labels won't get persisted on saveAll. · Issue #2110 · spring-projects/spring-data-neo4j · GitHub and it will get included in the service release that will get published later today.

1 Like

Thanks Gerrit for your quick response. I'm glad we can use de save all with dynamic labels!