[gatsby-source-graphql] download images from remote schema using Gatsby v4 #34192
Closed
2 tasks done
Labels
good first issue
Issue that doesn't require previous experience with Gatsby
help wanted
Issue with a clear description that the community can help with.
stale?
Issue that may be closed soon due to the original author not responding any more.
type: documentation
An issue or pull request for improving or updating Gatsby's documentation
Preliminary Checks
Summary
When using the
gatsby-source-graphql
plugin, the previous recommended way to download images from a remote GraphQL schema was to create a custom resolver inside thecreateResolvers
function. Here is the documentation for that way of doing it:https://www.gatsbyjs.com/docs/how-to/plugins-and-themes/adding-gatsby-image-support/#add-the-resolver
However, according to the Gatsby v4 documentation and migration guide, generating file nodes inside
createResolvers
is no longer supported. See:As far as I can tell, the
gatsby-source-graphql
does not explicitly generate nodes containing all the data necessary to generate a file node in theonCreateNode
function (which would be the only way of doing here, since the consumer of the plugin is not in control of thesourceNodes
function of the plugin).All that said, neither the documentation for Gatsby v4 nor that for the plugin in question provide adequate information about how to generate file nodes for images when using this plugin.
Steps to Resolve this Issue
...
The text was updated successfully, but these errors were encountered: