String or integer query in mongoDB for a single field
So If you have situation like above, you can get your results easily with:
collection.find({"vehId" : { $in: [intval($vehId), $vehId}})
So If you have situation like above, you can get your results easily with:
collection.find({"vehId" : { $in: [intval($vehId), $vehId}})