Hello,
I’ve got a document with structure like that:
{
...
"elements": [
{"foo": "bar", "value": 123},
{"foo": "baz", "value": 456},
...
],
...
}
I’m trying to select values from that elements array. I’ve tried this:
SELECT a.* FROM (SELECT elements FROM default WHERE Meta().id = <my document's id>) WHERE a.foo = "bar"
but it doesn’t seems to work. Can I do this?
BTW I’m using couchbase server version 4.5 if that matters.