galileo_data_loader 3.0.0 copy "galileo_data_loader: ^3.0.0" to clipboard
galileo_data_loader: ^3.0.0 copied to clipboard

Batch and cache database lookups. Works well with GraphQL. Ported from JS.

data_loader #

Pub build status

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

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'));
1
likes
40
pub points
0%
popularity

Publisher

verified publishergalileodart.com

Batch and cache database lookups. Works well with GraphQL. Ported from JS.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

More

Packages that depend on galileo_data_loader