matt_bostrom
7 years agoNew Contributor II
Make a list from multiple documents
I have a need to create a single list from multiple documents. Here is an example of some JSON:
[
{
color: “test1”,
value: “111”
},
{
color: “test2”,
value: “222”
},
{
color: “test3”,
value: “333”
},
{
color: “test4”,
value: “444”
},
{
color: “test5”,
value: “555”
},
{
color: “test6”,
value: “666”
},
{
color: “test7”,
value: “777”
}
]
and it looks like this:
But I need to map all those documents into a single list that essentially looks like this to use in an IN statement:
’ 111’,‘222’,‘333’,‘444’,‘555’,‘666’,‘777’
How would I achieve this?