This example demonstrates usage of a local plugin -- in this case a source plugin.
You might also be interested in the docs section on local plugins, or the source plugin tutorial.
This example site is also intended as a direct comparison to the using-unstructured-data example, which illustrates how to use an "unstructured data" approach (or, without making use of the GraphQL integration layer).
This example uses a local plugin to:
- Load data from the PokéAPI’s REST endpoints
- Process that data into Gatsby's node format
- Use the
createNode
action to add the data to Gatsby’s GraphQL layer
The gatsby-node.js
file of the local plugin includes detailed comments on the process.