graphql_data_loader2

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

graphql data loader2

GraphQL Data Loader 2 #





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: ^6.0.0
copied to clipboard
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'));
copied to clipboard

License

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

Files:

Customer Reviews

There are no reviews.