ipatate / gatsby-example

Home Page:https://gatsby-example.faramazpat.now.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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/

About

https://gatsby-example.faramazpat.now.sh


Languages

Language:JavaScript 67.5%Language:CSS 32.5%