toListOf

open override fun <T : Any> toListOf(params: Map<String, Any?>, mapper: DataMapper<T>): DataResult<List<T>>

Executes the query and maps results to a list of objects using the provided mapper.


open override fun <T : Any> toListOf(kType: KType, params: Map<String, Any?>): DataResult<List<T>>

Executes the query and maps results to a list of objects of the given type.