Example Gatsby with source from api

In file "gatsby-node.js", you can see how to create source node from an api.

The function "createResolvers" link comments and user with the post for use it in single graphQL query.

The function "createPages", create unique page for each post.

This example use just the api : https://jsonplaceholder.typicode.com/