If I have Couchbase documents that look like this:
{
"history": {
"id": "123",
"date": "today",
"status_history": [
{
"code": "0",
"message": "success",
"status": "complete"
}
],
"other": "other"
}
}
If I want to get all the documents from today I can do something like select * from 'my_bucket' where history.date = "today"
But how can I get something like status from status_history that is in an array structure?
select * from 'my_bucket' where history.status_history. status?? = "complete"