title: create gatsby-node pages based on a graphql query
body: <p>I want to <code>createPage</code> based on some queries I am using , this is my query in my <code>gatsby-node.js</code> :</p>
  <pre><code>{
        allPrismicLastPosts {
          nodes {
            data {
              blogs {
                blog {
                  document {
                    ... on PrismicBlog {
                      uid
                    }
                    ... on PrismicCulture {
                      uid
                      }
                    }
                  }
                }
              }
            }
          }
        }
        allPrismicMainBlogs {
          nodes {
            data {
              blogs {
                blog {
                  document {
                    ... on PrismicBlogMain {
                      uid
                    }
                  }
                }
              }
            }
          }
        }
  }
  </code></pre>
  <p>what I want from this query is the <code>uid</code> field ,
  and Since this query returns this JSON format :</p>
  <pre><code>allPrismicMainBlogs&quot;: {
        &quot;nodes&quot;: [
          {
            &quot;data&quot;: {
              &quot;blogs&quot;: [
                {
                  &quot;blog&quot;: {
                    &quot;document&quot;: {
                      &quot;uid&quot;: &quot;main02&quot;,
                       .
                       .
                       .
  }
  
  </code></pre>
  <p>I've tried this to fetch the <code>uid</code> :</p>
  <pre><code>  postPages.data.allPrismicLastPosts.nodes.forEach((page) =&gt; {
      page.data.blogs.forEach((article)=&gt;
      {
        createPage({
          path: article.blog.document.data.uid,
          component: path.resolve(__dirname, 'src/templates/post.js'),
          context: {
            id: page.id,
          },
        })
      }
      )
    })
  </code></pre>
  <p>I cannot get the <code>uid</code> because I am using <code>allPrismicLastPosts</code> but instead I want all the queries , so how can I fix this to display all the <code>uid</code></p>