toList

open suspend fun toList(): List<Document>(source)

Reads the entirety of this iterable into a List.

Since lists are in-memory, this method loads the entirety of the results into memory.

See also

Execute an action for each result.

Store all results in a Set.

Stream all results in a Flow.