title: Sequelize joining tables with multiple records with same foreign key
body: <p>I have sequelize database with 3 models.</p>
  
  <ol>
  <li>Team - primary key: id</li>
  <li>Participant - foreignKey refering to Team - teamId</li>
  <li>TeamResult- foreignKey refering to Team - teamId</li>
  </ol>
  
  <p>Each team can have multiple participants so there can be multiple records in participant table having same teamId. Same case with team results.</p>
  
  <p>I am trying to right a query where I get an object with all the participants and team results associated with the team in the following manner:</p>
  
  <pre><code>{
      "id": 1,
      "teamName": "Awesome Team",
      //other team attributes..
  
  
      "participants": [
          {
              "id": 12,
              "teamId": 1,
              //other details
          },
          {
              "id": 13,
              "teamId": 1,
              //other details
          },
      ],
  
      "teamResults": [
          {
              "id": 22,
              "teamId": 1,
              //other details
          },
          {
              "id": 13,
              "teamId": 1,
              //other details
          }
      ]
  }
  </code></pre>
  
  <p>I have wrote the following statement but all I get is just first one of Participants and Mentors, not all of them:</p>
  
  <pre><code>models.Team.find({
          where: {
              id: req.params.teamId
          },
          include: [
              {model: models.Participant, required: true},
              {model: models.TeamResult, required: true}
          ]
      }).then(function(team){/* handle team object here */})
  </code></pre>
  
  <p>What changes do I need to make in order to get the required result?</p>