title: Why does Sails v.0.10.x respond to POST to nested route with one-to-many association?
body: <p>In my app, I have two models <code>Person</code> and <code>Room</code>. I also have two controllers, <code>PersonController</code> and <code>RoomController</code>. I have added no custom routes, and I've overridden none of the boilerplate controller actions.</p>
  
  <p>When I <code>POST</code> to, for example, <code>/room/5/person</code>, a person record is created and associated with <code>room/5</code> as expected - great. However, the JSON returned in the response to this <code>POST</code> contains the Room and all People associated with the room, side-loaded in an array. I expected that Sails would return only the person created (or, at most, the newly created person and the room, if <code>blueprints.populate: true</code>).</p>
  
  <p>What changes to I need to make to so that Sails returns only the Person created as a result of the <code>POST</code>?</p>
  
  <p>Here's is my current code:</p>
  
  <p>/api/models/Room.js</p>
  
  <pre><code>// Room.js
  
  module.exports = {
  
      autosubscribe: ['update', 'add:people'],
      attributes: {
          name: 'string',
  
          // Has-many association
          // A room can have many people
          people: {
              collection: 'person',
              via: 'room'
          }
      }
  };
  </code></pre>
  
  <p>/api/models/Person.js</p>
  
  <pre><code>module.exports = {
  
      autosubscribe: ['update'],
      attributes: {
          name: 'string',
  
          // Belongs-to association
          // A person can belong to only one room
          room: {
              model: 'room'
          }
      }
  };
  </code></pre>
  
  <p>/api/controllers/RoomController.js</p>
  
  <pre><code>module.exports = {
  
  };
  </code></pre>
  
  <p>/api/controllers/PersonController.js</p>
  
  <pre><code>module.exports = {
  
  };
  </code></pre>
  
  <p>/config/routes.js</p>
  
  <pre><code>module.exports.routes = {
  
      '/': {
          view: 'homepage'
      }
  };
  </code></pre>