I have a couchdb document.. roughly like this (minimal)
{
"_id": "225136308d6f95611e457c0f02f1b47a769c35e8",
"_rev": "19-f2affa088d817ec924c6ca03c34ef1bf",
"communications": [
{
"sequenceId": 1,
"timestamp": "2019-09-18T05:43:10.412Z"
},
{
"sequenceId": 2,
"timestamp": "2019-09-18T05:48:37.407Z",
}
}
I want to look for all documents that has a latest timestamp older than X, how do I create a view to do that seeing as the timestamps are not stored as year,month,day?