artemis-normalized-cache
This is a normalized cache exchange for the artemis
GraphQL Client.
This is a drop-in replacement for the default [CacheExchange
] that, instead of document
caching, caches normalized data by keys and connections between data.
artemis
is already quite a comprehensive GraphQL client. However in several cases it may be
desirable to have data update across the entirety of an app when a response updates some known
pieces of data.
Quick Start
After installing this crate, change the default artemis
Client like from something like this:
let client = new
.with_default_exchanges
.build;
to this
use ;
use NormalizedCacheExchange;
let client = new
.with_exchange
.with_exchange
.with_exchange
.build;
TODO: Don't steal urlq's docs you plagiarist