title: Mongoose model doesn't work well
body: <p>These days, i am working for a project that need to keep some information about analytic by using NodeJS and MongoDB.</p>
  
  <p>When i try to send JSon data, some parts are saved into database but most parts of the data are losing. I couldn't understand where i am doing mistake. I do not have enough background about these technologies.</p>
  
  <p>Here is my Mongoose.model;</p>
  
  <pre><code>module.exports = mongoose.model('Products', new Schema({
      unique: Number,
      total: Number,
      hits: {
          String: {
              unique: Number,
              total: Number,
              users:[String]
          }
      }
  }));
  </code></pre>
  
  <p>Here is my Create function;</p>
  
  <pre><code>var mongoose = require('mongoose'),
      Product = require('../models/products.models')
  
  /**
   * Create a Product
   */
  exports.create = function(req, res) {
      var product = new Product(req.body);
  
      product.save(function(err) {
          if (err)
              return res.status(400);
          else
              res.status(201).json(product);
      });
  };
  </code></pre>
  
  <p>Here is what i try to post;</p>
  
  <pre><code>{
      "unique" : 50,
      "total" : 150,
      "hits" : {
          "11.06.2015" : {
              "unique" : 50,
              "total" : 60,
              "users" : [ 
                  "kris", 
                  "mark", 
                  "jom", 
                  "alpi"
              ]
          },
          "12.06.2015" : {
              "unique" : 50,
              "total" : 90,
              "users" : [ 
                  "kris", 
                  "mark", 
                  "jom"
              ]
          }
      }
  }
  </code></pre>