I get an "Sequence contains no matching element" error when I add a "distance" method to the where clause. After research, everything was saying that I had to install a plugin to add spatial support to Neo4j...however all of these articles and questions were ~5 years old.
Spatial now appears to be baked into the Neo4j server because I'm able to run this in the browser without installing additional plugins.
I have all of my nodes configured with a point property, and the query works fine in the browser.
This is the query that works fine in the browser:
MATCH (m:Person {userId: '7J4OwwnmQ1fMhavSLeLkDkKe9Kl2'})
MATCH (o:Person)
WHERE distance(m.location, o.location) < 1609344
RETURN o
One of the posts I found from 5 years ago mentioned using the "withindistance" function inside of the Start clause. I tried that and got an Index not found error...even though it was (verified through CALL db.indexes)