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. A port of the "Loader" API originally developed by @schrockn at Facebook in 2010 as a simplifying force to coalesce the sundry key-value store back-end APIs which existed at the time. At Facebook, "Loader" became one of the implementation details of the "Ent" framework, a privacy-aware data entity loading and caching layer within web server product code. This ultimately became the underpinning for Facebook's GraphQL server implementation and type definitions. DataLoader is a simplified version of this original idea implemented in JavaScript for Node.js services. DataLoader is often used when implementing a graphql-js service, though it is also broadly useful in other situations.

Features

  • DataLoader is provided so that it may be useful to build GraphQL services for Node.js
  • Batching is not an advanced feature, it's DataLoader's primary feature
  • Create loaders by providing a batch loading function
  • A batch loading function accepts an Array of keys, and returns a Promise which resolves to an Array of values
  • DataLoader allows you to decouple unrelated parts of your application without sacrificing the performance of batch data-loading
  • A batch loading function accepts an Array of keys, and returns a Promise which resolves to an Array of values or Error instances

Project Samples

Project Activity

See All Activity >

Categories

API Clients

License

MIT License

Follow DataLoader

DataLoader Web Site

Other Useful Business Software
Cut Data Warehouse Costs up to 54% with BigQuery Icon
Cut Data Warehouse Costs up to 54% with BigQuery

Migrate from Snowflake, Databricks, or Redshift with free migration tools. Exabyte scale without the Exabyte price.

BigQuery delivers up to 54% lower TCO than cloud alternatives. Migrate from legacy or competing warehouses using free BigQuery Migration Service with automated SQL translation. Get serverless scale with no infrastructure to manage, compressed storage, and flexible pricing—pay per query or commit for deeper discounts. New customers get $300 in free credit.
Try BigQuery Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of DataLoader!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript API Clients

Registered

2021-05-31