Closed jekel1818 closed 11 months ago
@jekel1818 thank you so much! Fixed and released in 0.12.2. This was a mistake I made in the logic. I wanted to add nodeTransforms
to modify any field before it is added to Gatsby, but neglected to consider the behaviour if this option is not used.
How are you finding querying the data in GraphQL? The plugin will likely work out of the box initially, but as data structure/queries get more complex, GraphQL schema inference starts to break down.
I am working on creating a Payload plugin that exposes the GraphQL schema to this plugin. This unlocks the power of the whole Gatsby GraphQL setup!
Hello, I am a total noob in Gatsby, so sorry if this is a dumb question..
After adding the plugin, I was always getting the following error:
TypeError: Cannot read properties of undefined (reading 'id')
Looking at the source code it seems like
nodeTransform
is expected to be defined ( which was not the case for me )Solving the issue was very straightforward, just needed to add a dummy
nodeTransform
object in the plugin config, but it felt a bit weirdIs there a better way to handle this situation, or maybe I am just missing some global Gatsby configuration?
Thanks