Per the Apollo Docs, I'd like to get the mutate()
function from ApolloClient into the props belonging to my react component. Is this the correct/preferred way to do it?
class myComponent extends React.Component {
constructor(props) {
super(props);
this.mutate = props.client.mutate();
};
}