title: Convert the mongoose find() query result into flat array
body: <p>Upon the mongoose find() query the result i am getting is:</p>
  
  <pre><code>[
     {
        "services":[
           {
              "location":[
                 17.4374614,
                 78.4482878
              ]
           },
           {
              "location":[
                 17.4020637,
                 78.48400519999996
              ]
           },
           {
              "location":[
                 17.387031788259197,
                 78.47838450137715
              ]
           }
        ]
     }
  ]
  </code></pre>
  
  <p>Is there any way to extract the output in such a way that i want an array of only location values such as:-</p>
  
  <pre><code>[
      '17.4374614',
      '78.4482878',
      '17.4020637',
      '78.48400519999996',
      '17.387031788259197',
      '78.47838450137715'
  ]
  </code></pre>
  
  <p>Edit: I am aware that map method does the job, but i am not able to find a workaround of implementing the map method for the above query.</p>
  
  <p>My schema:</p>
  
  <pre><code>var serviceSchema = new mongoose.Schema({
  
    location:[{type: Number}]
  
  })
  </code></pre>