unmapped<K extends Object, V> static method

DataLoader<K, V, K> unmapped<K extends Object, V>(
  1. BatchLoadFn<K, V> _batchLoadFn, [
  2. DataLoaderOptions<K, V, K>? options
])

Constructs a DataLoader where the item key K is equal to the cache key

Implementation

static DataLoader<K, V, K> unmapped<K extends Object, V>(
  BatchLoadFn<K, V> _batchLoadFn, [
  DataLoaderOptions<K, V, K>? options,
]) =>
    DataLoader(_batchLoadFn, options);