title: insert array of data in loopback
body: <p>i m using loopback and don't know how to insert array of data using sing api for eg  i have data like</p>
  
  <pre><code> view: [ true, false, false ],
   edit: [ false, true, false ],
   update: [ false, false, true ],
   product: [ 1, 2, 3]
  </code></pre>
  
  <p>now i want to insert data like this in table</p>
  
  <pre><code>  product | view | edit |update 
  ----------------------------------
       1    |true  |false |false 
       2    |false |false |true  
       3    |false |false |true  
  </code></pre>
  
  <p>i know i can use for loop but don't know where to use i.e whether this is possible in remote hook method or remote method can can one suggest me idea how to do this</p>