graphql_infra_tool 1.0.1 copy "graphql_infra_tool: ^1.0.1" to clipboard
graphql_infra_tool: ^1.0.1 copied to clipboard

A comprehensive Flutter package providing a robust wrapper around GraphQL operations with built-in error handling, authentication, caching, and logging capabilities.

1.0.0 #

  • Initial version.

1.0.1 #

Added #

  • New unified execute<T>() method for all GraphQL operations
  • New unified executeList<T>() method for list operations
  • OperationType enum to specify query, mutation, or subscription

Improved #

  • Reduced code duplication
  • Better consistency across operations

Breaking Changes #

  • query<T>() method - use execute<T>() with OperationType.query
  • mutate<T>() method - use execute<T>() with OperationType.mutation
  • queryList<T>() method - use executeList<T>() with OperationType.query
  • mutateList<T>() method - use executeList<T>() with OperationType.mutation

Migration Guide #

// Before (still works but deprecated)
final user = await client.query<User>(...);

// After (recommended)
final user = await client.execute<User>(
  operation: getUserQuery,
  operationType: OperationType.query,
  variables: {'id': '123'},
  modelParser: (json) => User.fromJson(json),
);
1
likes
150
points
95
downloads

Publisher

unverified uploader

Weekly Downloads

A comprehensive Flutter package providing a robust wrapper around GraphQL operations with built-in error handling, authentication, caching, and logging capabilities.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

gql, gql_link, graphql_flutter

More

Packages that depend on graphql_infra_tool