title: How to create mongoose schema dynamically?
body: <p>I have an app that works on node.js with MongoDB and mongoose. My app simply sends/deletes/edits form data and for that, I have such mongoose model:</p>
  
  <pre><code>var mongoose = require('mongoose');
  
  module.exports = mongoose.model('appForm', {
      User_id : {type: String},
      LogTime : {type: String},
      feeds : [   
      {
          Name: {type: String},
          Text : {type: String},
      }
      ]
  });
  </code></pre>
  
  <p>and that works just fine!</p>
  
  <p>Now, I would like to add a function to the form so that the user can add a field(or fields) to form and enter a text in it and post it.
  Creating that dynamic functionality on the client side is no problem but I understand that my mongoose.model has to be correctly structured. 
  My question is: how do I add that variable values(dynamically created form data name and its text) to mongoose schema?</p>
  
  <p>I see that using <code>strict: false</code> and <code>Schema.Types.Mixed</code> is advised. however, I can't figure out...
  What I have tried:</p>
  
  <pre><code>var mongoose = require('mongoose');
  var Schema = mongoose.Schema;
  var feedSchema = new Schema({strict:false});
  
  module.exports = mongoose.model('appForm', feedSchema);
  </code></pre>
  
  <p>Any tips? Thanks in advance!</p>