Steps to add data to a Gatsby project, using GrahQL to query an external API at build time:
- add
sourceNode
to gatsby-node.js - Check the data from the Graphiql UI: http://localhost:8000/___graphql
- Inject data to components or template by
export
ing aquery
property, in addtion of the default export.