-
Notifications
You must be signed in to change notification settings - Fork 39
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
How to using plugin with gatsby-source-graphql #7
Comments
Hi @phong-clarity ! Can you paste the config you are using for this plugin? (not gatsby-source-graphql). For this plugin, you should be able to target any nodes created by another plugin. |
@graysonhicks I also have a problem with getting image from GraphQL connected with
Query:
Error: |
Hi @Chmarusso do you have a link to the repo I could clone to try it out? |
@graysonhicks thanks for a quick reply. Sure thing, please check this branch: |
Any more info on this? We're seeing the same issue, and from what it looks like the While I haven't had a chance to look into it much further, it appears the fact
Further reading: |
Thanks @robdsoule , this does indeed look like an underlying issue with how the data is built with
That being said, it's something I would like this plugin to support so will be following those issues and making a note of this outstanding bug in the README. Once Gatsby has changed the third party schema format, I will make sure that the plugin can then handle those images. |
@Chmarusso Can confirm, after testing your repo locally, that it is the issue described above. Sorry about that, and hopefully the source-graphql plugin gets updated soon. |
Have you seen this example? |
Hm, are you suggesting adding a way to note that your image is coming from source-graphql and running code like in the example in that link? I think that's doable. I think we could use the existing options, and maybe get by with a flag for |
Essentially yes, I found it from another issue that someone got it working, but I can't find it now... |
I think we can fix this by expanding upon the changes made in #30 but... how much do we value the array literal syntax @graysonhicks? 😃 For data shaped like the example in the README:
Instead of this:
...you could do this:
Right? |
Hm, yea I haven't used the Then how does that I don't care so much about the array literal 'syntax' itself. But definitely want to still allow getting getting the |
I'm unable to have allMyNodes on my garphql hmm. |
My plugin config like this:
I tried to download remote images from url that returned by
api
field, but it's seem not working.The text was updated successfully, but these errors were encountered: