2018-09-25 20:48:25 +02:00
|
|
|
/**
|
|
|
|
* 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'
|
2018-09-25 20:48:25 +02:00
|
|
|
const watchedMutationLink = new WatchedMutationLink(cache, WatchedMutations);
|
|
|
|
|
|
|
|
export default watchedMutationLink
|