in this query it just want to find an object exactly like this :
{reviewId:reviewid}
your query should be like this :
const reviewid = req.params.product_id reviewSchema.find({'reviewInfo.reviewId':reviewid}}).then((value,err)
=> {console.log(value)})
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…