**I stored my data in mongodB , And it successfully done But when i try to fetch particular record ("ResumePath" : "28092020/Test Folder 4/Alekhyakasireddy[7_0].docx") through nodejs it is show undefined. enter image description here I am trying to store the aws S3 file uploaded fullname in mongodb column, when I try to print this value in console through node js...it is not getting the column value and when I check it's type..showing as undefined.
I guess the issue is with forward slash. Am I missing anything while storing aws S3 file name in mongo?**
CODE
user_data.find({_id:requestId},function(err,data){
if(err){
console.log(err);
}else{
console.log(data[0].ResumePath)
console.log(typeof data[0].ResumePath)
});
I am getting data for all fields expect ResumePath. ("ResumePath" : "28092020/Test Folder 4/Alekhyakasireddy[7_0].docx")
Top comments (0)