title: Why graphql query is not working in react?
body: <p><a href="https://i.stack.imgur.com/67zeW.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/67zeW.jpg" alt="Second react error"></a>In my react project I used a query to search github users data. The query is as follows:</p>
  
  <pre><code>const GET_USER = (user) =&gt; `
  {
    user(login: "${user}") {
      name
      login
      avatarUrl
      company
      gists{
       totalCount
     }
     following{
        totalCount
      }
      followers(last: 5){
        edges{
              node{
                  id
              name
              avatarUrl
          }
        }
      }
      repositories(last: 5){
        edges{
          node{
            id
            name
          }
        }
      }
    }
  }
  `;
  </code></pre>
  
  <p>If I update the query by just adding a single field called <code>email</code> in <code>followers</code> the react app stops working: </p>
  
  <pre><code>
  followers(last: 5){
        edges{
              node{
              id
              name
              avatarUrl
              email
          }
        }
      }
  
  </code></pre>
  
  <p>The same happens if I add data about the organizations in the query, like this:</p>
  
  <pre><code> organizations(last: 5){
        edges{
          node{
            id
            name
          }
        }
      }
  </code></pre>
  
  <p>But when I perform the same query in this link: [<a href="https://developer.github.com/v4/explorer/]" rel="nofollow noreferrer">https://developer.github.com/v4/explorer/]</a> it works.</p>
  
  <p>My react project is in the link: [<a href="https://github.com/rvmelo/react-tech6-final-project]" rel="nofollow noreferrer">https://github.com/rvmelo/react-tech6-final-project]</a>. The query is in the <code>App.js</code> file which is inside the <code>src</code> folder.</p>
  
  <p><a href="https://i.stack.imgur.com/uvIsV.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uvIsV.jpg" alt="First react error"></a></p>