title: How an i design Schema for Categories and sub Categories using mongodb(mongoose schema)?
body: <p>I am new to mongodb i want to create Categories with sub Categories Schema.for example Categories is nokia .in nokia lot of models is there for this how can i design Schema pls some one help me out.</p>
  
  <p>Example:</p>
  
  <pre><code>Categories :nokia
  sub Categories :Nokia Lumia 730,Nokia 225,Nokia Lumia 1020,Nokia Lumia 530
  </code></pre>
  
  <p>my SCHEMA:</p>
  
  <pre><code> var ShopSchema = new Schema({
  
      Email: {
          type: String,
          default: '',
          trim: true,
  
      },
      Storename: {
          type: String,
          default: '',
          trim: true
      },
      Type: {
          type: String,
          default: '',
          trim: true
      },
      Categories: {
          type: String,
          default: '',
          trim: true
      }
  
  
  });
  </code></pre>