@bond-london/gatsby-transformer-json-extended
v1.0.2
Published
Extended version of gatsby json transformer
Downloads
3
Readme
Gatsby extended transformer for json
This builds on the standard gatsby-transformer-json and extends it to create more custom objects
If the json structure has a type and module field, the type is used to generate the new node type using the contents of the module object for the contents
e.g.
{
"type": "Component 1",
"module": {
"title": "This is component 1",
"messages": [
"Message 1",
"Message 2"
]
}
}
It produces the graphql objects 'docComponent1' with the contents
{
"title": "This is component 1",
"messages": [
"Message 1",
"Message 2"
]
}