I have documents with a "Cedent" field that is an array of strings. When I run this query:
SELECT DISTINCT c.Cedents FROM c
I get the following result:
[
{
"Cedents": [
"Test 1",
"Test 2"
]
},
{
"Cedents": [
"Test 1",
"Test 3"
]
}
]
Is there a way to get only the unique values across all documents, as a single array? Example:
[
{
"Cedents": [
"Test 1",
"Test 2",
"Test 3"
]
}
]