Closed sergeily closed 4 years ago
Thanks for reporting this. It seems to be a bug on our side. We will take care about this. 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-1339 Please watch or comment on the issue in Jira for further communication.
Description Method org.neo4j.springframework.data.core.ReactiveNeo4jTemplate#saveAll does not save @DynamicLabels
How to reproduce? Our simplified steps to reproduce
Create entity
Create and run test
@Testcontainers @ReactiveDataNeo4jTest class ReactiveColumnNodeTest {
}
}
and
curl --location --request POST 'localhost:8080/column/save/all' \ --header 'Content-Type: application/json' \ --data-raw '[ { "daeId": "987-zyx", "labels": [ "Column", "Test", "Model" ] } ]'
MATCH (n:Column) RETURN n, labels(n) LIMIT 25
╒═══════════════════╤═════════════════════════╕ │"n" │"labels(n)" │ ╞═══════════════════╪═════════════════════════╡ │{"daeId":"123-abc"}│["Column","Test","Model"]│ ├───────────────────┼─────────────────────────┤ │{"daeId":"987-zyx"}│["Column"] │ └───────────────────┴─────────────────────────┘