title: Sails.js search in array
body: <p>I'm working with sails and I need to find objects which have a specific value in array.</p>
  
  <p>I've got this model :</p>
  
  <pre><code>User = {
   data = { type: 'array}
  }
  </code></pre>
  
  <p>When I do that : </p>
  
  <pre><code>User.find({data:3}).exec(...) 
  
  // =&gt; It's returns nothing
  </code></pre>
  
  <p>And if I try that </p>
  
  <pre><code>User.find({data:{contains:3}}).exec(...)
  
  // =&gt; It's will return all User who have '3' in the array 
  but it will return the users whose have 34 or 13, ... too.
  </code></pre>
  
  <p>There are no solution in sails to find records from an array ?</p>
  
  <p>What's happens if I put the type of data as 'json' ?</p>
  
  <p>Thanks !</p>