Vinelab / NeoEloquent

The Neo4j OGM for Laravel
MIT License
636 stars 200 forks source link

Builder needs to have a 'hasNot' function #230

Closed emredoganm closed 6 years ago

emredoganm commented 7 years ago

This query doesnt work with Neo4j 3.0.1 User::has("followers","<",1)->get()

I am using Laravel 5.3.31 and NeoEloquent 1.4

I tried to change source code but could not do it. If we have a hasNot() function which generates this cypher query:

MATCH (parentNodeOf:User) WHERE NOT (parentNodeOf)<-[:FOLLOWS]-(:User) return parentNodeOf

Mulkave commented 6 years ago

Compatibility has been implemented long ago, if this is still valid please re-open. Sorry for the late reply.