Skip to main content

mk_graphql 1.0.0 copy "mk_graphql: ^1.0.0" to clipboard
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:
    • AuthLink with automatic 401 interception, thread-safe asynchronous token refresh queuing, and token revocation hooks.
    • DioLink powered by Dio with full cancellation support (CancelToken), automatic GraphQL Multipart Request spec uploads (Upload scalar / MultipartFile), and HTTP interceptors.
    • SseLink for Server-Sent Events (SSE) subscriptions with dynamic token header injection and 401 retry support.
    • WebSocketLink for GraphQL over WebSockets (graphql-ws and legacy protocol).
    • HttpLink for lightweight HTTP operations.
    • BatchLink for batching multiple GraphQL requests into a single HTTP payload.
    • TypenameLink for automatic __typename injection into AST selection sets.
    • LoggerLink for structured console logging with customizable options.
  • Client & Caching:
    • GraphQLClient supporting 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).
1
likes
0
points
845
downloads

Publisher

verified publisherkishormainali.com

Weekly Downloads

A clean, modern, simplified GraphQL client for Dart & Flutter with normalized caching, composable links, and stream-based operation execution.

Repository (GitHub)
View/report issues

Topics

#graphql #flutter #client #sse #dio

License

unknown (license)

Dependencies

async, collection, dio, flutter, gql, gql_exec, gql_link, http, meta, web_socket_channel

More

Packages that depend on mk_graphql