-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[gatsby-source-graphql] How to download images from remote schema? #8404
Comments
Currently it's not possible to mix 3rd party schemas with goodies like sharp transformation from gatsby - we get 3rd party schema as-is. We do have plans to work on that - see gatsbyjs/rfcs#11 and issues linked there |
Ouch, this hurts a lot. 😢 |
Great to hear there's future plans to add support for mixing 3rd party schemas. Definitely seems like it's better to write a custom source if you need these sorts of integration in the meantime. |
We have a CMS with a GraphQL endpoint. I was beyond happy to see that you could use the GraphQL endpoint directly with v2 instead of querying all data manually in gatsby-node and then requerying that data within the pages and components. |
Great solution here @joltmode tears no more https://dev.to/nevernull/gatsby-with-wpgraphql-acf-and-gatbsy-image-72m |
Summary
I am looking for a way to download images so that Sharp could take over, and have been following this issue to do so: #2902 (comment)
Apparently,
onCreateNode
doesn't give deep information when usinggatsby-source-graphql
, since only the "root" node is created. Also, thesetFieldsOnGraphQLNodeType
doesn't help.The only relevant node being this:
Where do I hook in to
createRemoteFileNode
?Relevant information
Environment (if relevant)
File contents (if changed)
gatsby-config.js
: N/Apackage.json
: N/Agatsby-node.js
:gatsby-browser.js
: N/Agatsby-ssr.js
: N/AThe text was updated successfully, but these errors were encountered: