title: In Mongoose, the method save(); don't work
body: <p>When I try to save anything in mongo using mongoose, the callback of method save(); return me OK, this would mean that everything is saved in MongoDB but when I check MongoDB in console there not anything saved just de DB empty. Notably, I use mongo on docker container.</p>
  
  <p>Conecction.ts</p>
  
  <pre class="lang-js prettyprint-override"><code>import  mongoose from 'mongoose';
  
  const DB_URL:string = 'mongodb://localhost:27017';
  
  mongoose.connect(DB_URL,{
      useNewUrlParser: true,
      user:'admin',
      pass:'qwerty12345',
      dbName:'veterinaria_db'
  });
  
  
  export default mongoose.connection
  </code></pre>
  
  <p>Client.ts</p>
  
  <pre class="lang-js prettyprint-override"><code>import  mongoose from 'mongoose';
  const Schema:any = mongoose.Schema;
  import db from '../db/Conecction';
  
  
  db.on('error',console.error.bind(console, 'connection error:'));
  db.once('open',()=&gt;{
      console.log('DB: Connected Susesfuly!!');
  });
  
  export interface IClient extends mongoose.Document{
      name:string,
      first_last_name:string,
      second_last_name:string,
      username:string,
      password:string,
      mail:string,
      phone:string,
      cellphone:string,
      history:[{
          appoinments:{
              pets:{
                  name:string,
                  type:string,
                  age:number
              },
              date:Date,
              reason:string,
              status:number
          }
      }]
  };
  
  export const ClientSchema = Schema({
      name:String,
      first_last_name:String,
      second_last_name:String,
      username:String,
      password:String,
      mail:String,
      phone:String,
      cellphone:String,
      history:[{
          appoinments:{
              pets:{
                  name:String,
                  type:String,
                  age:Number
              },
              date:Date,
              reason:String,
              status:Number
          }
      }]
  });
  
  
  export default db.model&lt;IClient&gt;('Client',ClientSchema);
  </code></pre>
  
  <p>Controller.ts</p>
  
  <pre class="lang-js prettyprint-override"><code>    testPost(req: any, res: any) {
          let { name, first_last_name, second_last_name, username, password, mail, phone, cellphone, history } = req.body;
          let newClient = new Client({
              name,
              first_last_name,
              second_last_name,
              username,
              password,
              mail,
              phone,
              cellphone,
              history:[]
          });
  
          newClient.save((error, client) =&gt; {
              if (error) return res.status(500).send({ message: `Error: ${error}` });
              res.status(200).send({ message: `Client ${client.name} saved` });
          });
  </code></pre>