Skip to content

Add labels or and and to SpEL #2681

Closed
Closed
@meistermeier

Description

@meistermeier

Currently we only have the literals clause to render an arbitrary string into a custom Cypher statement.
Although one could prepare the string upfront manually and joining multiple strings on | or & and pass this to the query method, it would be more convenient to add one or two functions directly.
Namely those functions will be

  • anyOf : renders input ["a","b", ..] to A|B|..
  • allOf : renders input ["a","b", ..] to A&B&..

The usage would be MATCH (n::#{allOf(#labels)}) RETURN n, for example.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions