title: Mongoose populate array
body: <p>I can't get mongoose to populate an array of objects.</p>
  
  <p>The schema is as follows:</p>
  
  <pre><code>var topOrganisationsForCategorySchema = new mongoose.Schema({
    category: String,
    topOrganisations: [{
      organisation: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'organisation'
      },
      model: mongoose.Schema.Types.Mixed
    }]
  });
  
  module.exports = mongoose.model('topOrganisationsForCategory', topOrganisationsForCategorySchema);
  </code></pre>
  
  <p>I would like all of the objects in this collection populated with an array of organisations.</p>
  
  <p>Here is what i have tried</p>
  
  <pre><code>TopOrganisationsForCategory
    .find()
    .exec(function(err, organisation) {
      var options = {
        path: 'topOrganisations.organisation',
        model: 'organisation'
      };
  
      if (err) return res.json(500);
      Organisation.populate(organisation, options, function(err, org) {
        res.json(org);
      });
    });
  
  var organisationSchema = new mongoose.Schema({
    name: String,
    aliases: [String],
    categories: [String],
    id: {
      type: String,
      unique: true
    },
    idType: String
  });
  
  organisationSchema.index({
    name: 'text'
  });
  
  module.exports = mongoose.model('organisation', organisationSchema);
  </code></pre>