title: Apollo client fragments not embedding data
body: <p>This is the first time I've ventured into fragments and I can't see where I'm screwing up, but it definitely isn't working! In GraphiQL it's working fine:</p>
  <pre><code>query Tasks($taskIds: [String]!) {
      tasks(taskIds: $taskIds) {
          ...taskDisplay
      }
  }
  fragment taskDisplay on Task {
      _id
      name
      description
      status
      children {
          _id
      }
  }
  </code></pre>
  <p>Here's what's in my client app:</p>
  <pre><code>import { gql } from &quot;@apollo/client&quot;;
  
  export const TASK_FRAGMENT = gql`
      fragment taskDisplay on Task {
          _id
          name
          description
          status
          children {
              _id
          }
      }
  `;
  
  export const TASKS = gql`
      query Tasks($taskIds: [String]!) {
          tasks(taskIds: $taskIds) {
              ...taskDisplay
          }
      }
      ${TASK_FRAGMENT}
  `;
  </code></pre>
  <p>So, the server returns the data correct as I can see in the <em>Network</em> tab of Chrome, but the data received by the <code>useQuery</code> result is an empty object. What gives?</p>
  <p>Using <code>@apollo/client@3.2.0-beta.2</code> (I have downgraded to 3.1.0 with same results)</p>
  <h3>EDIT:</h3>
  <p>Adding more info. My code is about as simple as it could be using a hook. Here's what's happening:</p>
  <pre><code>import { useQuery, gql } from &quot;@apollo/client&quot;;
  import { TASK_FRAGMENT } from &quot;../pages/task/queries&quot;;
  
  const ROOT_TASK_QUERY = gql`
      query Project($projectId: String!) {
          rootTask(projectId: $projectId) {
              ...taskDisplay
          }
      }
      ${TASK_FRAGMENT}
  `;
  
  const useProject = ({ variables }) =&gt; {
      return useQuery(ROOT_TASK_QUERY, {
          variables,
      });
  };
  export default useProject;
  </code></pre>
  <p>And this is just logging the query itself:</p>
  <p><a href="https://i.stack.imgur.com/iueps.png" rel="noreferrer"><img src="https://i.stack.imgur.com/iueps.png" alt="Missing Data" /></a></p>