'How can we fetch blog posts and pages from Shopify Headless in Gatsby with gatsby-source-shopify plugin?

I am planning to migrate my site from Shopify to Shopify Headless + Gatsby but I am having a problem with the plugin, gatsby-source-shopify. It can create nodes for products and product related data but not blog posts. Is there any way to get blog posts or do I have to create them manually in Gatsby.

Here is my configuration for gatsby-source-shopify plugin.

      resolve: `gatsby-source-shopify`,
      options: {
        password: process.env.GATSBY_SHOPIFY_PASSWORD,
        storeUrl: process.env.GATSBY_SHOPIFY_STORE_URL,
        shopifyConnections: ["collections"],
      },
    },

It gives products and product related nodes in GraphQL. Available Nodes in GraphQL Screenshot

I try googling but all of the tutorials and gatsby-source-shopify documentation focus on retrieving product data.

Thank you guys.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source