graphql_data_loader2 5.0.0 icon indicating copy to clipboard operation
graphql_data_loader2: ^5.0.0 copied to clipboard

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

GraphQL Data Loader 2 #

Pub Version (including pre-releases) Null Safety Gitter License melos

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: ^4.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
140
pub points
0%
popularity

Publisher

verified publisher icondukefirehawk.com

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

Homepage
Repository (GitHub)

Documentation

API reference

License

Icon for licenses.BSD-3-Clause (LICENSE)

More

Packages that depend on graphql_data_loader2