New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@nbn23/dataloader

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nbn23/dataloader

DataLoader library

latest
Source
npmnpm
Version
3.3.1
Version published
Maintainers
2
Created
Source

DataLoader

DataLoader is a generic utility to be used as part of your application's data fetching layer to provide a simplified and consistent API over various remote data sources such as databases or web services via batching and caching.

Getting Started

Install DataLoader using npm.

npm install --save @nbn23/dataloader

Note: DataLoader assumes a TypeScript environment

Usage

const DataLoader = require("dataloader");

const cache = new CacheRedis();
const itemLoader = new DataLoader((keys) => getItems(keys), cache);

const items = await itemLoader.loadMany([2, 4, 6]);

Keywords

data

FAQs

Package last updated on 05 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts