I've a document structure below (simplified):
{
"id": "2345",
"camp{
"id": 999
"code": "C1244
"offers": [
{
"status": "active",
"description": "Commence Loyalty At Year 6"
},
{
"status": "inactive"
"description": "abcd test
}
}
}
Where I would like to filter the offers where status is active. Can someone help me with what the query may look like for this?