cannot find embedded documents in mongodb

i am trying to find product reviews , based on their product id from products collection,

Below is the code for finding that reviews that has id that matches product id , it is a nested object in reviewInfo object

const reviewid  = req.params.product_id
reviewSchema.find({reviewInfo:{reviewId:reviewid}}).then((value,err) => {console.log(value)})

i also have provided an image of my review schema

all i am getting is empty array .image shows the reviewproduct schema structure

91 thoughts on “cannot find embedded documents in mongodb”

  1. Howdy I am so grateful I found your blog, I really found you by mistake, while I was looking on Google for something else, Anyhow I am
    here now and would just like to say thanks for a tremendous post and a all round
    entertaining blog (I also love the theme/design), I don’t
    have time to browse it all at the moment but I have saved it and also included your RSS feeds,
    so when I have time I will be back to read a lot more, Please do
    keep up the excellent b. http://hydroxychloroquined.online/

    Reply
  2. Pingback: ivermectin clav
  3. Pingback: deltasone for ear
  4. Pingback: ivermectin cost
  5. Pingback: cialis pills
  6. Pingback: viagra 200mg uk

Leave a Comment