One more thing to add is that what I was doing for previous versions of
Neo4j and it was working (but it's not allowed anymore) is the following:
START
n1=({node})
MATCH
n1<-[r?:rel1]-n2
WHERE
n1.propertyA = {param1} AND (r is null OR n2.propertyB! = {param2})
RETURN
n1;
Thanks,
Hi all,
I'm having a hard time building a query with optional relationship using
Neo4j 2.3.2.
My query is something like this:
MATCH
(n1:Label1)
WHERE
(n1.propertyA = {param1})
OPTIONAL MATCH
(n1)<-[r:rel1]-(n2:Label2)
WHERE
(NOT (n1)<-[r:rel1]-(n2) OR n2.propertyB =
Hi everybody,
here are some additional infos about *JCypher release* *3.2.0*:
New in this release:
- Concurrency support - thread-safe invocation of 'IDomainAccess' and
domain queries.
- Query DSL and Domain Query - String Operators: STARTS_WITH, CONTAINS
(CONTAINS_string),