title: how to make a recursive relationship in sails?
body: <p>Diagram:
  <img src="https://i.stack.imgur.com/vLu6A.png" alt="enter image description here"></p>
  
  <p>I want to have a array with all IDs of the friend users, like this:</p>
  
  <pre><code>{
     id: 1
     name: 'Javi',
     email: '123@gmail.com',
     friends: [2]
  }
  
  {
      id: 2,
      name: 'User2',
      email: '321@gmail.com',
      friends: [1]
  }
  </code></pre>
  
  <p>i tried with this:</p>
  
  <pre><code>// User.js &lt;-- model
  attributes:{
     name: 'string',
     email:{type:'email', required: true}
     friends:{
       collection: 'User',
       via: 'friends'
     },
  }
  </code></pre>
  
  <p>I cannot achieve that. </p>