So I have a php script on a web server listening for mongoDB queries via a JSON object POST with another page building and sending queries to the php service. All my standard queries such as :
{"field1":"2342342","field2":"234234"} are sent and return the correct resutls.
However, when I try to send a query that includes a range of values it returns nothing.
{"field2":"1234","date" : {$gte : "2013-02-11"},"date" : {$lte : "2013-02-11"}}
I can go into the command line and call:
db.collection.find({"field2":"1234","date" : {$gte : "2013-02-11"},"date" : {$lte : "2013-02-11"}} )
which returns the results as expected. Obviously there is something going on that I do not fully understand.
PHP command doing the search:
$c_collection->find(json_decode($request));
Any help would be much appreciated.
$requestbuilt?