concept DataLoader instance in category graphql
appears as: DataLoader instance, DataLoader instces, The DataLoader instces, DataLoader instce

This is an excerpt from Manning's book GraphQL in Action.
This npm package has a default export which we usually import as
DataLoader. This default export is a JavaScript class that we can use to instantiate a DataLoader instance. TheDataLoaderclass constructor expects a function as its argument and that function is expected to do the data fetching. This function is known as the batch loading function because it expects an array of key IDs and it should fetch all records associated with these IDs in one batch action and then return these records as an array that has the same order as the array of input IDs.