lowercase

Converts a string to lowercase, returning the result.

If the argument resolves to null, $toLower returns an empty string "".

Example

class Document(
val text: String,
)

collection.aggregate()
.set {
Document::text set of(Document::text).lowercase()
}.toList()

External resources