Vulcan/packages/vulcan-lib/lib/client/apollo-client/links/watchedMutation.js

11 lines
476 B
JavaScript
Raw Normal View History

/**
* 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';
2018-09-26 09:56:21 +02:00
import { WatchedMutations } from '../updates';
2018-09-26 10:17:03 +02:00
import cache from '../cache'
const watchedMutationLink = new WatchedMutationLink(cache, WatchedMutations);
export default watchedMutationLink