title: No graphql endpoint provided
body: <p>I'm having trouble with using he graphQL from AWS.</p>
  <p>I can successfully login and confirm the user with Cognito as I can see it in the console.</p>
  <p>Sign in with Cognito:</p>
  <pre><code>async signIn(email, password) {
        try {
            //sign in the user
            const user = await Auth.signIn(email, password);
            AlertHelper.show('info', 'yups', user);
        }
        //If not a user then display message
        catch (error) {
            AlertHelper.show(&quot;warn&quot;, &quot;User not found&quot;, &quot;Please create an account&quot;);
        }
    }
  </code></pre>
  <p>Returns a successful message then I call another function to call the graphQL api:</p>
  <pre><code>async check() {
      try {
        const userInfo = await Auth.currentAuthenticatedUser({bypassCache:true})
        console.log(&quot;User info: &quot;,userInfo)
  
      //If there is a user
        if(userInfo){
  
          const userData = await API.graphql(graphqlOperation(getUser));
  
          console.log(&quot;User Data: &quot;,userData);
        }
      }
  
      catch (err) {
        console.log('Error: ', err)
      }
  }
  </code></pre>
  <p>Here is the error even though the user info is correct:</p>
  <pre><code>  errors: [ [GraphQLError: No graphql endpoint provided.] ] }
  </code></pre>
  <p>Here is my AWS Exports:</p>
  <pre><code>const awsmobile = {
      &quot;aws_project_region&quot;: &quot;eu-west-1&quot;,
      &quot;aws_cognito_identity_pool_id&quot;: &quot;eu-west-1:xxxxxxxxxxxxxxxxxxxxxx&quot;,
      &quot;aws_cognito_region&quot;: &quot;eu-west-1&quot;,
      &quot;aws_user_pools_id&quot;: &quot;eu-west-1_xxxxxxxxx&quot;,
      &quot;aws_user_pools_web_client_id&quot;: &quot;xxxxxxxxxxxxxxxxxxxxxxxxxx&quot;,
      &quot;oauth&quot;: {}
  };
  
  export default awsmobile;
  </code></pre>
  <p>Get User:</p>
  <pre><code>export const getUser = /* GraphQL */ `
    query GetUser($id: ID!) {
      getUser(id: $id) {
        id
        name
        coins
        description
        createdAt
        updatedAt
      }
    }
  `;
  </code></pre>
  <p>Im tearing my hair out here please help!!</p>