title: Apollo client: mutate is not a function
body: <p>I am calling this component from a parent component that is passing props thru the argument fields. However When I try to call the mutation function I keep getting the error: mutate is not a function. I dont understand what is causing this issue as I followed the apollo documentation online almost exactly.</p>
  
  <pre><code>const OnboardingComplete = (props, { mutate }) =&gt; {
  
    const currentUser = {
     id: props.id,
     firstName: props.first_name,
     lastName: props.last_name
    }
  
  
  return (
  
   &lt;View style={styles.subcontainer}&gt;
          &lt;Button bordered rounded iconLeft
        style={styles.importButton}
        onPress={() =&gt; 
          mutate({ variables: { user: currentUser } })
          }&gt;
          &lt;Text style={styles.buttonText}&gt;Complete  &lt;/Text&gt;
          &lt;Icon name='arrow-forward' /&gt;
        &lt;/Button&gt;
        &lt;/View&gt;
  
  );
  }
  
  
  const addUser = gql`
    mutation addUser($user: UserInput!) {
      addUser(input: $user) 
    }
  `;
  
    export default graphql(addUser)(OnboardingComplete);
  </code></pre>