A module to generate pages from the data from source
Parameters:
| Name | Type | Description |
|---|---|---|
actions |
Object | Object that holds gatsby method for managing nodes. |
createPage |
function | Function from the actions object, used to create pages. Gatsby Doc : createNode |
graphql |
function | graphql function to query data from internal data source. |
Methods
(inner) createPage(node)
After getting the data from graphql and reorganizing it in the desired shape,
createPage is used to generate the static html file using the defined react template.
Parameters:
| Name | Type | Description |
|---|---|---|
node |
Object | Object containing data to create the page |
Properties:
| Name | Type | Description |
|---|---|---|
path |
string | Url path used for the page being created |
component |
string | Path to the react component used as template |
context |
Object | Contains all the data relative to the page |
- Source:
(async, inner) graphql() → {Array}
Pulling data from gatsby internal source system
Parameters:
| Type | Description |
|---|---|
| string | Template littaral to describe the query |
- Source:
Returns:
- Type
- Array