We have the following schema for a MongoDb document. I want to display only the items with the flag "Display" set to true.
{
id: 123,
properties : [
{name : "Name", value: "Value"},
{name : "Description", value: "A description of the item"},
{name : "Display", value: true}
]
}
I am not able to figure out how to do this in MongoDB. Any help would be greatly appreciated.