I need a Spring Data Neo4J repository method which takes as input a list of names and returns all nodes with a specific label which have one of those names, with depth 1.
For example:
Set<Person> findAllByName(Set<String> names)
should return a Set containing all Persons whose names are in the "names" Set including all their immediate children nodes.
I am open to writing custom queries, filters or anything else, I just want to get this to work somehow.
I already tried writing a custom repository implementation using Neo4jOperations.loadAllByProperties, but I cannot figure out how to create a filter which matches against a list.
Thanks, Alex