toSingleOf

open override fun <T> toSingleOf(kType: KType, params: Map<String, Any?>, mapper: DataMapper<T & Any>): DataResult<T>

Executes the query and maps the result to a single object using the provided mapper.


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

Executes the query and maps the result to a single object of the given type.