Mongodb find query with $near and coordinates not working
问题 I'm trying to make use of some geolocation functionality in mongodb. Using a find query with $near doesn't seem to work! I currently have this object in my database: { "Username": "Deano", "_id": { "$oid": "533f0b722ad3a8d39b6213c3" }, "location": { "type": "Point", "coordinates": [ 51.50998, -0.1337 ] } } I have the following index set up as well: { "v": 1, "key": { "location": "2dsphere" }, "ns": "heroku_app23672911.catchmerequests", "name": "location_2dsphere", "background": true } When I