title: Getting CoreMongooseArray instead of normal array
body: <p>I have this schema:</p>
  
  <pre><code>var orderSchema = new mongoose.Schema({
    history: [{
      "type": {
        type: String,
        enum: [
          'ORDER_HISTORY_DRIVER_DETAILS',
          'ORDER_HISTORY_LOADING',
          'ORDER_HISTORY_LOCATION',
          'ORDER_HISTORY_UNLOADING'
        ],
        required: true
      },
      date: {
        type: Date
      },
      state: {
        type: String,
        enum: [
          'ORDER_HISTORY_STEP_STATE_COMPLETED',
          'ORDER_HISTORY_STEP_STATE_CURRENT',
          'ORDER_HISTORY_STEP_STATE_FUTURE',
        ],
        default: 'ORDER_HISTORY_STEP_STATE_FUTURE',
        required: true
      }
    }]
  })
  </code></pre>
  
  <p>At one point, I need to remove all subdocuments that have a type of "ORDER_HISTORY_LOCATION", so I'm running this:</p>
  
  <pre><code>let result = await Order.findOneAndUpdate(
    {orderId: req.params.orderId},
    {
      $pull: {
        history: {type: "ORDER_HISTORY_LOCATION"}
      }
    }, {new: true}
  );
  </code></pre>
  
  <p>When i log "result.history" i get this:</p>
  
  <pre><code>CoreMongooseArray [
  { state: 'ORDER_HISTORY_STEP_STATE_CURRENT',
    _id: 5caf8a41641e6717d835483d,
    type: 'ORDER_HISTORY_DRIVER_DETAILS' },
  { state: 'ORDER_HISTORY_STEP_STATE_FUTURE',
    _id: 5caf8a41641e6717d835483c,
    type: 'ORDER_HISTORY_LOADING',
    date: 2019-05-08T09:00:00.000Z },
  { state: 'ORDER_HISTORY_STEP_STATE_FUTURE',
    _id: 5caf8a41641e6717d835483b,
    type: 'ORDER_HISTORY_LOADING',
    date: 2019-05-09T09:00:00.000Z },
  { state: 'ORDER_HISTORY_STEP_STATE_FUTURE',
    _id: 5caf8a41641e6717d8354837,
    type: 'ORDER_HISTORY_UNLOADING',
    date: 2019-05-13T09:00:00.000Z } ]
  </code></pre>
  
  <p>What is this "CoreMongooseArray"? I can't do anything with it. I also can't find any documentation on it.</p>