-
Notifications
You must be signed in to change notification settings - Fork 616
Closed
Labels
type: enhancementA general enhancementA general enhancement
Description
There is a way to retrieve dynamic labels for a node, but no way to create method to search by them.
Check following example:
Node:
@Node("Port")
public class Port {
@Id
private Long id;
private String code;
@DynamicLabels
private List<String> labels;
}
Repository:
public interface PortRepository extends Neo4jRepository<Port, Long> {
List<Port> findByLabelsContaining(String label);
}
Actual query:
MATCH (port:`Port`)
WHERE $label IN port.labels
RETURN port{.code, .id, __nodeLabels__: labels(port), __internalNeo4jId__: id(port)}
Expected query:
MATCH (port:`Port`)
WHERE $label IN labels(port)
RETURN port{.code, .id, __nodeLabels__: labels(port), __internalNeo4jId__: id(port)}
imenem, kamilhark and marko3527
Metadata
Metadata
Assignees
Labels
type: enhancementA general enhancementA general enhancement