Multiple schema references in single schema array - mongoose : <p>Can you populate an array in a mongoose schema with references to a few different schema options?</p>

<p>To clarify the question a bit, say I have the following schemas:</p>

<pre><code>var scenarioSchema = Schema({
  _id     : Number,
  name    : String,
  guns : []
});

var ak47 = Schema({
  _id     : Number
  //Bunch of AK specific parameters
});

var m16 = Schema({
  _id     : Number
  //Bunch of M16 specific parameters
});
</code></pre>

<p>Can I populate the guns array with a bunch of ak47 <strong>OR</strong> m16? Can I put <strong>BOTH</strong> in the same guns array? Or does it require a populate ref in the assets array, like this, which limits it to a single specific type?</p>

<pre><code>guns: [{ type: Schema.Types.ObjectId, ref: 'm16' }]
</code></pre>

<p>I know I could just have separate arrays for different gun types but that will create an insane amount of extra fields in the schema as the project scales, most of which would be left empty depending on the loaded scenario.</p>

<pre><code>var scenarioSchema = Schema({
  _id     : Number,
  name    : String,
  ak47s : [{ type: Schema.Types.ObjectId, ref: 'ak47' }],
  m16s: [{ type: Schema.Types.ObjectId, ref: 'm16' }]
});
</code></pre>

<p>So back to the question, can I stick multiple schema references in a single array?</p>
