graphql_data_loader2 2.0.0 copy "graphql_data_loader2: ^2.0.0" to clipboard
graphql_data_loader2: ^2.0.0 copied to clipboard

outdated

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

graphql_data_loader2 #

version Null Safety Gitter

License

Batch and cache database lookups. Works well with GraphQL. Ported from the original JS version: Graphql

Installation #

In your pubspec.yaml:

dependencies:
  graphql_data_loader2: ^2.0.0

Usage #

Complete example: Source code

var userLoader = DataLoader((key) => myBatchGetUsers(keys));
var invitedBy = await userLoader.load(1)then(user => userLoader.load(user.invitedByID))
print('User 1 was invited by $invitedBy'));
0
likes
0
pub points
53%
popularity

Publisher

verified publisherdukefirehawk.com

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

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on graphql_data_loader2