mk_graphql 1.0.0
mk_graphql: ^1.0.0 copied to clipboard
A clean, modern, simplified GraphQL client for Dart & Flutter with normalized caching, composable links, and stream-based operation execution.
1.0.0 #
- Initial release of
mk_graphql. - Composable Link Architecture:
AuthLinkwith automatic 401 interception, thread-safe asynchronous token refresh queuing, and token revocation hooks.DioLinkpowered by Dio with full cancellation support (CancelToken), automatic GraphQL Multipart Request spec uploads (Uploadscalar /MultipartFile), and HTTP interceptors.SseLinkfor Server-Sent Events (SSE) subscriptions with dynamic token header injection and 401 retry support.WebSocketLinkfor GraphQL over WebSockets (graphql-wsand legacy protocol).HttpLinkfor lightweight HTTP operations.BatchLinkfor batching multiple GraphQL requests into a single HTTP payload.TypenameLinkfor automatic__typenameinjection into AST selection sets.LoggerLinkfor structured console logging with customizable options.
- Client & Caching:
GraphQLClientsupporting both Future (future()) and Stream (stream()) operations.- Pluggable cache interface with built-in normalized
InMemoryCache. - Configurable fetch policies (
cacheFirst,cacheOnly,networkOnly,cacheAndNetwork,noCache). - Optimistic response support.
- Fully typed responses and exceptions (
GraphQLResponse,GraphQLException,UnAuthorizedException,RequestCancelledException).