@b.s/gqwery
v3.1.1
Published
Normalized and document cache, executors and requests managers for GraphQL to be used with Qwery
Downloads
21
Maintainers
Readme
✨ Features
- 💼 Normalized cache (update all mutations and queries by entity)
- 🏃🏽♂️➡️ HTTP (both the usual request/response and Server Sent Events) and WebSocket executors
- 📢 Synchronize all instances of Qweries by operation name
- 🧐 Sourcemaps for easy debugging
- ± Request deduplication by only fetching the largest selection of fields
- 🌏 CJS + ESM
- ... and everything
qwery
has to offer
qwery
is a collection of lightweight composable hooks and helpers to aid with async state management. It was designed with the aim of simplifying architectural migrations to support building evolutionary architectures in mind. gqwery
provides first class GraphQL support.
📚 For more information, check out the wiki.
∑ TLDR;
- Normalized and document caching + structural sharing + query cancellation + automatic garbage collection + subscriptions/polling + suspense + refetching + mutations + broadcast updates + SSR = Any place ✅
- Backend agnostic + client side transactions + retry mechanism + batching = Any time ✅
- React + Vue + Solid + Svelte = Anywhere ✅
📦 Release
After a few bumpy 1.x.x and 2.0.x releases 😬, v2.1.x onwards are considered stable
🤛🏽 Credits
qwery
heavily draws upon ideas from:
misc:
- urql: really nice README
- apollo-client: GraphQL document transforms
🤝🏽 Contributions
- Contributions are welcome, just make a pull request
"I'm my own reason why I sing, and so are you, are you understanding?"