galileo_data_loader

Last updated:

0 purchases

galileo_data_loader Image
galileo_data_loader Images
Add to Cart

Description:

galileo data loader

data_loader #


Batch and cache database lookups. Works well with GraphQL.
Ported from the original JS version:
https://github.com/graphql/dataloader
Installation #
In your pubspec.yaml:
dependencies:
data_loader: ^1.0.0
copied to clipboard
Usage #
Complete example:
https://github.com/galileo-dart/graphql/blob/master/data_loader/example/main.dart
var userLoader = new DataLoader((key) => myBatchGetUsers(keys));
var invitedBy = await userLoader.load(1)then(user => userLoader.load(user.invitedByID))
print('User 1 was invited by $invitedBy'));
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.