We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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)}
The text was updated successfully, but these errors were encountered:
Good point, thanks for raising it.
Sorry, something went wrong.
GH-2638 - Use labels(n) when deriving a contains query for an entit…
labels(n)
c7f0c5e
…y with dynamic labels. Closes #2638.
d192a80
111af50
Thanks a lot!
michael-simons
No branches or pull requests
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:
Repository:
Actual query:
Expected query:
The text was updated successfully, but these errors were encountered: