Forum Discussion
You are probably looking for the GroupByFields snap. That will allow you to group all of the input documents with the same Row number into a single output document. You can then use a Mapper to merge the resulting array of input documents together (if that’s what you’re after).
The expression to use in the Mapper would leverage the extend()
method on Objects to construct a new object from its arguments. In this case, we’ll be using the spread operator (i.e. three dots) to specify that the array of input documents should be passed as individual arguments to the extend()
method, like so:
{}.extend(...$group)
(Note: The {}
just makes an empty object that will be used as the base for the extension.)
Here’s a pipeline that does the above:
CombineRows_2019_09_16.slp (7.3 KB)
Thanks you @tstack ! That seems to do the trick!