title: String or integer query in mongoDB for a single field
body: <p>In MongoDB, there is field named vehId. It contains value in string as well in integer. like </p>
  
  <pre><code>{
  "vehId" : "12"
  }
  
  or
  
  {
  "vehId" : 12
  }
  
  or
  
  {
  "vehId" : ""
  }
  </code></pre>
  
  <p>If I do query as vehId as integer it return only vehId having value in Integer as for string it return only string. But I need a single query for both string and integer . Like </p>
  
  <pre><code>collection.find({"vehId" : &lt;value&gt; })
  </code></pre>
  
  <p>I need a single query that return all value. If I pass vehId as integer it also return values having vehId in string and vice-versa</p>