I have a data in mongodb like below.
{
"color":"gray",
"object": {
"name": "apple",
"price": "2000",
"qu" : "good"
}
}
And I want to find this data using mongoose in nodejs.
const result = await findOne({color: "gray", object:{name:"apple"}})
But it doesn't give anything. How can I use find well to find inside of json object?
Thank you so much for reading it.