I’m migrating from react-apollo to @apollo/client. I have code, similar to this:
makePromise(execute(link, operation))
.then(data => {
const { upvotePost } = data.data;
this.setState({ update: upvotePost });
this.getPosts();
})
.catch(error => console.log(`received error ${error}`));
It looks like the “makePromise” method did not make it to the @apollo/client. What is the best way to handle the above operation now?