DataLoader v2.0

Loader was essentially GraphQL’s dynamic query planner and it was the secret sauce to Facebook’s performant GraphQL service.

In that very moment we veered into the next coffee shop we passed, opened a laptop and started to draft a JavaScript version of Loader. In a couple hours we had a complete working first version of DataLoader. We were quite pleased that it was about 100 lines of easy to follow code, 250 lines as we added copious comments, types, and inline documentation. The fact that this “library” was one terse file gave us confidence that we really were describing a general concept, and not some sophisticated software or algorithm. In fact, I was able to explain the story, rationale, and all of the source code in about a half hour. The very next week we released DataLoader to the open source community.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Lee Byron

Lee Byron

7K Followers

I design and build software and teams at Robinhood. React, GraphQL, Immutable.js, Web, Mobile, JavaScript. Opinions are my own, often flawed.