title: Schema for arrays inside array?
body: <p>I have a collection to like below. I want to design a schema in mongoose...</p>
  
  <pre><code>   {
     "_id" : ObjectId("51da6e03e6d8e40aa4c72c28"),
       "series" : [{
    "type" : "pie",
    "name" : "Browser share",
    "data" : [["Firefox", 45.0], ["IE", 26.8], ["Safari", 8.5], ["Opera", 6.2], ["Others",    0.7]]
  }]
  }
  </code></pre>
  
  <p>My mongoose code is :</p>
  
  <pre><code>_id: false,
     series: [{
      type:String,
      name: String,
      data:[]
  }]
  </code></pre>
  
  <p>But I am not getting that data using this schema. I am getting a blank array but I want the same data that is in that collection. Please suggest some schema structure and how I can fetch the same data using node.</p>
  
  <p>this is the way i m fetching data, But i am not able to get the data:
            query.fetchAll(schData.schTempPI, null, function (err, result) {</p>
  
  <pre><code>    console.log(result.series);
  
      var data = chartModel.data;
      for (i = 0; i &lt; result[0].series.length; i++) {
          data.series.push(result[0].series[i])
          console.log(data);
      }
  </code></pre>