Skip to content

Instantly share code, notes, and snippets.

@danared
Created November 3, 2015 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danared/d9ae67d1d95d1d463a6c to your computer and use it in GitHub Desktop.
Save danared/d9ae67d1d95d1d463a6c to your computer and use it in GitHub Desktop.
db.hottestLocations.find().forEach(function(myDoc) {
var myCursor = findNeighbours(myDoc.Location[0], myDoc.Year);
myCursor.forEach(printjson);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment