giving mongoDB userId as official userId for user schema

 userId:{

type:mongoose.Schema.Types.ObjectId,

ref:"User",

required:true

}


Comments