title: mongoose comments and replies schema
body: <p>I am following this link to understand how to design my schema for a social media type  module with comments and replies. <a href="https://www.xuchao.org/docs/mongodb/use-cases/storing-comments.html#gsc.tab=0" rel="nofollow noreferrer">https://www.xuchao.org/docs/mongodb/use-cases/storing-comments.html#gsc.tab=0</a> (This is for mongdb and not mongoose)</p>
  <p>I am trying to create a schema like this</p>
  <pre><code>const socialSchema = new mongoose.Schema({
      Entry_Number: Number,
      Player_Name: String,
      Player_Message : String,
      Player_Fullmessage: String,
      Player_ProfilePic : String,
      Player_UploadedPic: String,
      Player_UploadedVideos: String,
      Status_Date: String,
      Status_Feeling: String,
      Google_Profile: String,
      Status_Likes: [{Like_Number: Number, Liked_By: String}],
    Status_Comments: [
                        {Comment_Number: Number,
                         Comment_By: String,
                         Comment_Message: String},
                         replies: [
                           {Comment_By: String,
                            Comment_Message: String}
                          ],
                       ],
  Friends: { type: Array, default: []},
      Shares: { type: Array, default: []},
      Shared_Post: String,
      Shared_Newmessage: String,
      Shared_PostDetails: [{type: Schema.Types.ObjectId, ref: &quot;socialdatas&quot;}]
  </code></pre>
  <p>The problem I am facing is with the replies. My logic tells me that the replies should be a array within the main comments array. However the cods as it is above, gives me an error while compiling. SyntaxError: Unexpected token ':'</p>
  <p>Am I approaching this correctly? Any experts that can give me some advice. Thanks.</p>