makePromise(execute(link, operation)) .then(data => { const { upvotePost } = data.data; console.log('WithLink upvotePost:', upvotePost); this.setState({ update: upvotePost }); this.getPosts(); }) .catch(error => console.log(`received error ${error}`));
makePromise(execute(link, operation)) .then(data => { const { posts } = data.data; this.setState({ posts }); }) .catch(error => console.log(`received error ${error}`));