When I have two MongoDB documents like this...
db.test.insert( {\"value\" : \"10123\"} ); db.test.insert( {\"value\" : \"160\"} );
The resu
To convert String into int use this
db.test.find({'year': {$type: 2}}).forEach( function (x) { x.value=new NumberInt(x.value); db.test.save(x)} )
And after that you can directly query like :
db.test.find({"value" :{$gt : 12} });