You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The doesntHave method does not work. I guess other variants like whereDoesntHave, orWhereDoesntHave will not work either.
Steps To Reproduce:
Person::doesntHave("twitter")
is generating a query like
MATCH (person:`Person`), (person)-[`rel_owns_twitter`:`OWNS`]->(twitter:`Twitter`) WHERE person.deleted_at is null WITH person, count(twitter) AS twitter_count WHERE twitter_count < 1 RETURN person
It is matching on the Persons Twitter account and then requiring that there is less than one Twitter account...
The text was updated successfully, but these errors were encountered:
So doesntHave appears to call has in QueriesRelationships.php. I think if the second match clause was changed to an OPTIONAL MATCH, it would fix doesntHave without breaking has.
So doesntHave appears to call has in QueriesRelationships.php. I think if the second match clause was changed to an OPTIONAL MATCH, it would fix doesntHave without breaking has.
yes. When I modify it, it can work. But where sub-clause don’t work. Because where sub-clause attach in optional match sub-clause not attach in match sub-clause.
I want cypher like this:
match (n) where … optional match (n)-[]-(m) with n, count(m) as cm where cm<1 return n
but it generate like this:
match (n) optional match (n)-[]-(m) where … with n, count(m) as cm where cm<1 return n
Description:
The
doesntHave
method does not work. I guess other variants likewhereDoesntHave
,orWhereDoesntHave
will not work either.Steps To Reproduce:
is generating a query like
It is matching on the Persons Twitter account and then requiring that there is less than one Twitter account...
The text was updated successfully, but these errors were encountered: