Is it possible to aggregate specific field of related nodes into array?
Can i somehow modify this query:
query {
items(func: uid(0x1, 0x2, 0x3)) @normalize {
related {
fields1: fieldName1
fields2: fieldName2
}
}
}
To get something like this:
{
"items": [
{
"fields1": ["a", "b", "c"],
"fields2": [1, 2, 3]
},
...
]
}
I do not really care about order or uniqueness. I just need flattened response across related nodes
Variables do not seem to work, even though sum of value variables with strings does not trigger any errors