extract()
Usage
extract(collection, propertyKey)
Description
This method iterates over the contents of the given entity collection and extracts the value for the given property key of each element. The return value of this method is a collection of extracted property values. It is often used in combination with find()
and join()
to create comma-separated lists of entity values.
Examples
<div>${extract(find('User'), 'name')}</div>
results in
<div>[admin, user1, user2, user3]</div>