unwind()
Usage
unwind(collections...)
Description
Combines the given nested collections into to a single, “flat” collection. This method is the reverse of extract()
and can be used to flatten collections of related nodes that were created with nested extract()
calls etc. It is often used in conjunction with the find()
method like in the example below.
Example
${unwind(extract(find('Group'), 'members'))}
results in
without unwind: [[b29e98329fb949b798162b88864aa038, 1224b74c018e4adf9cd6f5c07393f369, 6608098072bd44f68c0a9fdaa2571417]]
with unwind: [b29e98329fb949b798162b88864aa038, 1224b74c018e4adf9cd6f5c07393f369, 6608098072bd44f68c0a9fdaa2571417]