Cache of loaded GraphQL operations. You probably don’t need to interact with this unless you’re implementing a server side rendering framework.
wrapper for cache
Removes an event listener.
Adds an event listener.
A map of loading GraphQL operations. You probably don’t need to interact with this unless you’re implementing a server side rendering framework.
Loads or reuses an already loading GraphQL operation in
[GraphQL operations]{@link GraphQL#operations}. Emits a
GraphQL
instance fetch
event if an already loading
operation isn’t reused, and a cache
event once it’s loaded into the
[GraphQL cache]{@link GraphQL#cache}.
Loading GraphQL operation details.
Signals that [GraphQL cache]{@link GraphQL#cache} subscribers such as the
operation. Emits a GraphQL
instance reload
event.
Resets the [GraphQL cache]{@link GraphQL#cache}, useful when a user logs
out. Emits a GraphQL
instance reset
event.
Generated using TypeDoc
A lightweight GraphQL client that caches queries and mutations.
class
GraphQL
Options.
Cache to import; usually from a server side render.
wrapper cacheValue
reportCacheErrors
to setup error reporting.const graphql = new GraphQL()