Tagged: cypher Toggle Comment Threads | Keyboard Shortcuts

  • yalamber 9:07 am on January 22, 2018 Permalink | Reply
    Tags: cypher, geoquery,   

    Find nodes near other nodes in neo4j

          MATCH (u:User) 
          WHERE u._id <> $_id
          WITH point({ longitude: u.longitude, latitude: u.latitude }) AS singlesPoint, 
               point({ longitude: $longitude, latitude: $latitude }) AS userPoint, u
          WITH distance(userPoint, singlesPoint) as distanceBetween, u
          WHERE $maxDistance < distanceBetween
          return u
          LIMIT $limit
    
     
  • yalamber 8:50 am on July 30, 2017 Permalink | Reply
    Tags: cypher,   

    Get specific label nodes without relation to specific label

    MATCH (d:District) WHERE NOT ((d)-[:LOCATED_IN]->(:Province)) RETURN d
    
     
  • yalamber 1:18 pm on June 17, 2017 Permalink | Reply
    Tags: cypher, ne04j   

    Delete all nodes and relations

    MATCH (n)
    DETACH DELETE n
    
     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel