Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed version tests after forward merge
- Loading branch information
1 parent
0d5c7ec
commit c3d6152
Showing
3 changed files
with
45 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
MATCH (n:User) WHERE exists(n.id) RETURN n.id ORDER BY n.id ASC | ||
|
||
MATCH (n:User) WHERE exists(n.id) RETURN n.id ORDER BY n.id DESC | ||
|
||
MATCH (n:User)--(other) WHERE exists(n.id) RETURN n.id ORDER BY n.id DESC | ||
|
||
WITH point({latitude: 55.612149, longitude: 12.995090}) AS poi | ||
MATCH (l:Location)<-[:AT]-(b:Business)-[:OF]->(c:Category) | ||
WHERE c.name = "coffee" | ||
AND distance(l.location, poi) < 10000 | ||
RETURN distance(l.location, poi) as distance, b.name as coffee_shop | ||
ORDER BY distance DESC | ||
|
||
CREATE INDEX ON :User(location); | ||
|
||
CREATE (u:User) SET u.location = 'Malmö'; | ||
|
||
CREATE (u:User) SET u.location = 42; | ||
|
||
CREATE (u:User) SET u.location = point({latitude: 55.612149, longitude: 12.995090}); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters