title: Query multiple JSON files with graphQL in Gatsby
body: <p>I'm trying to query two <code>JSON</code> files that I put in a <code>src/data</code> directory. I installed <code>gatsby-transformer-json</code> and added the directory as a source.</p>
  <pre><code>{
    resolve: `gatsby-source-filesystem`,
    options: {
      path: `${__dirname}/src/data/`
    }
  }
  </code></pre>
  <p>I then tried several ways to build the graphql query but I am only able to successfully query the first json file I created <code>work_experiences.json</code> which looks like this although my second file <code>skills.json</code> has the exact same structure</p>
  <pre><code>{
    &quot;work_experiences&quot;: [
      {
        &quot;body&quot;: &quot;lorem ipsum&quot;,
        &quot;title&quot;: &quot;lorem ipsum&quot;,
        &quot;role&quot;: &quot;lorem&quot;,
        &quot;dateBegin&quot;: &quot;2015-10-01&quot;,
        &quot;dateEnd&quot;: &quot;2016-07-03&quot;,
        &quot;companyUrl&quot;: &quot;http://www.lorem.com&quot;,
        &quot;workUrl&quot;: &quot;/lorem/ipsum/&quot;
      },
      ...
  </code></pre>
  <p>A query on skills.json always returns <code>null</code>
  <a href="https://i.stack.imgur.com/F9T5j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/F9T5j.png" alt="enter image description here" /></a>
  <a href="https://i.stack.imgur.com/Lp1sm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Lp1sm.png" alt="enter image description here" /></a></p>
  <p>Is there a way to query both files or do I have to merge everything into a single <code>data.json</code> file ?</p>