Hi Team
I have sample document as below, I would like to write a n1ql query that would return the concatenated value of all the authors in the below document.
Can I please know how to achieve that using n1ql?
"books": {
...
...
"authors": [
"AAAA",
"BBBB",
"CCCC"
],
...
...
}
Regards,
Venkat
@maciej.tomaszewski I have gone through it already, but unfortunately I don’t see any array function supporting that.
SELECT CONCAT2(",", books.authors) FROM bucket
I don’t know your db structure but it would be sth like this. Please play with it a bit, you will figure it out
1 Like
vsr1
May 21, 2021, 10:49am
5
@maciej.tomaszewski and @vsr1
Thanks for the info but unfortunately we are still not on 6.0.2 so we don’t have a CONCAT2 function available
vsr1
May 21, 2021, 11:01am
7