MongoDB provides a simple REST interface in order for you to send simple queries. The problem is, I don't know how to specify the type when querying. For instance:
Say I have this document in the collection,
{ "_id" : { "$oid" : "51ae1042c92ba30ae0afa26f" }, "serialNumber" : "4661016803", "clientPayload" : { "$binary" : "gwVGYQFoAwEBAQJJkFGj839Ro/N/GcfKG8l89gcAAHvNAAAAAAFDCwADAv+lLwkfAAEACAAAPqQHAAAw7AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==", "$type" : "00" }, "receiveTime" : { "$date" : 1369717200070 } }
How would I run a query on the serialNumber?
I'm trying
http://xxx.x.x.x:xxxx/test/stuff/?filter_serialNumber=4661016803
But apparently it's running a query for "query" : { "serialNumber" : 4661016803 }
I want "query" : { "serialNumber" : "4661016803" }