I have the following document:
{
"_id": {
"$oid": "5d4037f811b787414dcfb3a5"
},
"id": 1,
"seats": [{
"available": true
}, {
"available": true
}, {
"available": true
}, {
"available": false
}]
}
How to query using mongodb-java-driver only the documents that have number of seats available greater than 3?
What I want is something like this: (seats.available eq true) gt 3
Is it possible?