kgraphql / com.apurebase.kgraphql.test.dsl / DataLoaderDSL

DataLoaderDSL

class DataLoaderDSL<K, R>

Constructors

<init>

DataLoaderDSL(batchLoader: BatchLoader<K, R>)

Functions

configure

Lets you configure the DataLoader

fun configure(block: DataLoaderOptionsDSL<K, R>.() -> Unit): Unit

prime

Primes the cache with the given value(s), if you have duplicate keys, the last one counts (includes prime with Throwable)

fun prime(vararg pairs: Pair<K, R>): Unit

Primes the cache with the given value(s), if you have duplicate keys, the last one counts (includes prime with R)

fun prime(vararg pairs: Pair<K, Throwable>): Unit