I have a document {_id: abc, orderdate:(ISO date), quantity:10}
and I am trying to come up with query in Java where we search for all documents with orders in a given month whose quantity
is > 5
Eg: select * from documents where month(orderdate)=Jan and quantity>5
Can you please help me write this query in Java?