Skip to content

Instantly share code, notes, and snippets.

@bdmac
Created October 20, 2010 01:09
Show Gist options
  • Save bdmac/635563 to your computer and use it in GitHub Desktop.
Save bdmac/635563 to your computer and use it in GitHub Desktop.
> db.collection.find( { latlng : { $near : [50,50] , $maxDistance : 5 } } )
> db.collection.find( { latlng : { $maxDistance : 5 , $near : [50,50] } } )
error: {
"$err" : "missing geo field (latlng) in : { latlng: { $maxDistance:
5.0, $near: [ 50.0, 50.0 ] } }",
"code" : 13042
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment