sling_gql 0.1.1 copy "sling_gql: ^0.1.1" to clipboard
sling_gql: ^0.1.1 copied to clipboard

GraphQL client for Flutter where the widget is the query — read a field, get the query. Proof of concept.

0.1.1 #

  • example/main.dart: a complete, self-contained app (query, mutation, optimistic write) shown on the pub.dev Example tab.
  • Repository: pub workspace + melos, CI on every push, releases via melos version.

0.1.0 #

Initial release — proof of concept.

  • QueryBuilder / MutationBuilder / SlingScope: read typed accessors during build(), get the query.
  • Selection recording, per-frame batching into one GraphQL document, argument → variable extraction with deterministic aliases.
  • Normalized cache (__typename:id entities, by-id lookups, evict, gc, snapshot / onChange), per-field rebuild notifications.
  • Skeleton state before data arrives, prepare for conditional reads, waterfall warnings in dev mode.
  • Mutations with optimistic writes, journaled and rolled back on failure.
  • Partial errors[] handling, sticky errors with refetch, retry cooldown.
  • Cursor pagination helpers, CacheScope.list for list membership updates.
0
likes
160
points
--
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

GraphQL client for Flutter where the widget is the query — read a field, get the query. Proof of concept.

Homepage
Repository (GitHub)
View/report issues

Topics

#graphql #client #cache #codegen

License

MIT (license)

Dependencies

flutter, http

More

Packages that depend on sling_gql