I am trying to implement find() query in php. I have the following geoJSON :
{
"_id": {
"$oid": "dfgdg35g4334fwvwe34f"
},
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
12.12345678910111,
3.12345678910111
]
},
"properties": {
"name": "Any Name"
}
}
and querying as
$cursor = $collection->find(array("geometry"=> array("type"=>"Point")));
to get the results from geometry->type="Point" . What am i doing wrong cant seem to figure out the problem.