I have a collection named "categories". I want to be able to find one that has title "Juices". After targeting Juices I would like to be able to see all the items inside of it.
{
"_id": "xibspjSNQLJKurHoT",
"title": "Juices",
"description": "all types of juices",
"items": [
{
"title": "Apple Juice",
"description": "Made with apples",
"healthy": true
},
{
"title": "Orange Juice",
"description": "Made with oranges",
"healthy": true
}
],
"author": "9MJh7d4ELJ9guChvs",
"createdAt": ISODate("2016-01-09T05:03:49.681Z")
},
{
"_id": "xibspjSNQLJKurHoT",
"title": "Meats",
"description": "beef",
"items": [
{
"title": "Chicken",
"description": "Made with chicken",
"healthy": true
}
],
"author": "9MJh7d4ELJ9guChvs",
"createdAt": ISODate("2016-01-09T05:03:49.681Z")
}
The result I would like to see is something like this
{
"title": "Apple Juice",
"description": "Made with apples",
"healthy": true
},
{
"title": "Orange Juice",
"description": "Made with oranges",
"healthy": true
}