I have a collection of docs that has a couple arrays as items, I want to export them into a CSV, but the array obviously comes back as something like "items" : ["one","two",'three"] and the spreadsheet sees these as separate one, two, three
Is there a way to convert and array like
["one","two",'three"]
to a string like this
"one,two,three"
I would prefer to do this in the aggregation query, however If I need to dump to a temp collection and convert the collection - I am ok with that.
any help appreciated