first()
Usage
first(collection)
Description
Returns the first element from the given collection. This method is often used in conjunction with find()
to return the first result of a query.
Example
${first(find('User'))}
results in
f02e59a47dc9492da3e6cb7fb6b3ac25