|
Typo in query operator example:
> db.collection.find( { $geoIntersects: { $geometry: { "type": "Point", "coordinates": [ 40, 5 ] } } } )
|
error: { "$err" : "invalid operator: $geometry", "code" : 10068 }
|
>
|
I assume this is the correct usage:
> db.collection.find( { geo: { $geoIntersects: { $geometry: { "type": "Point", "coordinates": [ 40, 5 ] } } } } )
|
{ "_id" : ObjectId("512d118cd0278926be8c93e9"), "geo" : { "type" : "Point", "coordinates" : [ 40, 5 ] } }
|
>
|
Also, not a sentence: "To query 2dsphere indexes, all current geospatial query operators with an additional $geoIntersects operator."
|