Hi guys,
I need your help another time.
I’ve a document structure as following:
…
“languageInfos”: [
{
“language”: “en”
},
{
“language”: “el”
},
{
“language”: “en”
},
{
“language”: “el”
},
{
“language”: “en”
},
{
“language”: “ru”
}
],
…
What I want to get is one array with all existing languages in all documents.
So, for now, I’m getting the values as an array with the query:
select raw ARRAY l.language for l in languageInfos END from default
The result is:
[
[
“en”,
“el”,
“en”,
“el”,
“en”,
“ru”
],
[
“en”,
“el”,
“pl”,
“ru”,
“sr”,
“hu”
],
[
“en”
],
…
]
So my Problem is now that I try to put ARRAY_UNION around which I can’t manage right now.
Maybe this is also the wrong approach to achieve this and there is a better way?
Any help is welcome.
cheers
Kirsten