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

Dynamic labels for @Node #239

Closed InventorSingh closed 4 years ago

InventorSingh commented 4 years ago

Hello Neo4j, Thank you for the great work on reactive drivers.

It would be great if we can support Spring SpEL for @Node labels.

Use Case: Multi-Tenant application

We could have a Supplier which computes the node label at run time: @Bean("client") Supplier<String> client() { return ClientResolver::resolve; }

And use the supplier inside Node annotation. @Node("#{ client.get() }_mynode")

Thank you!

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-1346 Please watch or comment on the issue in Jira for further communication.