My document has a structure like this:
{
"Calibration": {
"Presettings": {
"Date": [
{
"Value": "2016-09-02 10:11",
"Type": "generated"
},
{
"Value": "2016-09-05",
"Type": "schedule",
"Duration": "5"
}
]
}
}
}
How must I define the selector part of a query object to get all documents with dates (Value) less or equal to a given date and with Type=='generated'
?