title: How to workaround non existent types in Graphql query in Gatsby
body: <p>I'm building a website with a blog section, and on deployment to production the blog will be empty. I'm having problems allowing an empty blog on my Gatsby site.</p>
  <p>When I run <code>npm run develop</code> it will only work if I have some blogs - I want it to work before the blogs have been added.</p>
  <p>The main issues I'm encountering is trying to accomidate fields not existing like <code>allStrapiBlog</code> and <code>strapiBlog</code> because there are no blogs.</p>
  <p>I get errors like this on <code>blog</code> components, and on my <code>nav</code> component (where i have a query that a conditional uses).</p>
  <pre><code>  15:17  error  Cannot query field &quot;allStrapiBlog&quot; on type &quot;Query&quot;  graphql/template-strings
  </code></pre>
  <pre><code>Cannot query field &quot;strapiBlog&quot; on type &quot;Query&quot;
  </code></pre>
  <p>This is what the query looks like for my navigation component. But it throws an error - is there a way to make it just return <code>null</code>?</p>
  <pre><code>query NavigationQuery {
      allStrapiBlog {
          nodes {
              title
              strapi_id
          }
          totalCount
      }
  }
  </code></pre>
  <p>How do I make unsuccessful GraphQL queries not break the build, so I can build a gatsby site with a empty blog?</p>