title: Nested Collection in MongoDB
body: <pre><code>const onboarderSchema = new Schema({
    name: {
      type: String,
      required: [true, "name field is required"]
    },
    email: {
      type: String
    },
    project: {
      type: Object,
      projectName: {
        type: String,
        required: [true]
      },
      projectDescription: {
        type: String
      },
      manager: {
        type: String,
        required: [true]
      },
      mentor: {
        type: String,
        required: [true]
      },
      technologies: {
        type: [Number],
        required: [true]
      }
    }
  });
  </code></pre>
  
  <p>This is a schema for my project which I am working on. The Project which is an object will have different projects added to it dynamically. So should I change the type of project to an array or something else? Cannot figure out what to do. Please suggest.</p>