title: Mongoose Packs Each Object In An Array
body: <p>community!
  I got some issue with mongoose. It adds an array of arrays to the database instead of an object array and packages each object into an array. What's going wrong?</p>
  <p>So I create PaymentMethod, set <code>Array&lt;IPayment&gt;</code> to <code>fee</code></p>
  <pre><code>export class PaymentMethod{
      @prop({ required: true, unique: true })
      public name: String
  
      @prop({ required: true })
      public details: String
  
      @prop({ required: true })
      public inlineMenu: String
  
      @prop({ required: true })
      public callbackData: String
  
      @prop({ required: true })
      public fee: Array&lt;IPaymentFee&gt;
  
      @prop({ default: false })
      public available: Boolean
  } 
  </code></pre>
  <p><code>IPaymentFee</code> Interface:</p>
  <pre><code>export interface IPaymentFee {
      from: Number
      type: 'percent' | 'fixed'
      amount: Number
      extra?: Number | 0
  }
  </code></pre>
  <p>Afterwards I create a new payment method:</p>
  <pre><code>const createdPayment = await PaymentMethodModel.create({
      name: 'xbank',
      details: '43284809328432',
      inlineMenu: 'menu_payment_xbank',
      callbackData: 'client_payment_xbank',
      available: true,
      fee: [
          { from: 0, type: 'fixed', amount: 200 },
          { from: 1000, type: 'percent', amount: 20, extra: 150 },
          { from: 1500, type: 'percent', amount: 17 },
          { from: 2000, type: 'percent', amount: 15 },
          { from: 3500, type: 'percent', amount: 13 },
          { from: 10000, type: 'percent', amount: 12 },
          { from: 20000, type: 'percent', amount: 11 },
          { from: 30000, type: 'percent', amount: 10 },
      ]}
  )
  </code></pre>
  <p>But eventually I get incorrect result with an array of arrays instead of an array of objects --
  <a href="https://i.stack.imgur.com/XuN9C.jpg" rel="nofollow noreferrer">screenshot here</a></p>
  <p>What am I doing wrong? Thx a lot in advance!</p>