mirror of
https://github.com/vale981/Vulcan
synced 2025-03-12 05:26:38 -04:00
11 lines
No EOL
476 B
JavaScript
11 lines
No EOL
476 B
JavaScript
/**
|
|
* Watched mutations allow to update the cache based on a MutationSuccess
|
|
* E.g. if the user juste created a Todo, we can update the cached Todo list
|
|
* @see https://github.com/haytko/apollo-link-watched-mutation
|
|
*/
|
|
import WatchedMutationLink from 'apollo-link-watched-mutation';
|
|
import { WatchedMutations } from '../updates';
|
|
import cache from '../cache'
|
|
const watchedMutationLink = new WatchedMutationLink(cache, WatchedMutations);
|
|
|
|
export default watchedMutationLink |