fun <T> MongoIterable<T>.toList(): List<T>
Iterates over all the documents, adding each to the given target.
target - the collection to insert into
target
callback - a callback that will be passed the target containing all documents
callback