-
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-drupal] Images URI / URL handling changes in JSON API 2.x #9834
Comments
This PR fixes the issue of indexing correctly the files But still I can't see the |
@dcorb Thanks for the quick PR! I added a suggestion to your PR, that might fix it up. |
…URI format (gatsbyjs#9835) Description of the issue gatsbyjs#9834 (If this approach is correct, I could add a test for this case)
…URI format (gatsbyjs#9835) Description of the issue gatsbyjs#9834 (If this approach is correct, I could add a test for this case)
Old issues will be closed after 30 days of inactivity. This issue has been quiet for 20 days and is being marked as stale. Reply here or add the label "not stale" to keep this issue open! |
Hey again! It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m Thanks again for being part of the Gatsby community! |
Description
With Gatsby 2.x and latest Drupal module JSON API 2.x version, it's not indexing correctly the file entities. And it's not possible anymore to take advantage of
gatsby-transformer-sharp
images queryFrom https://www.drupal.org/node/2982209
Steps to reproduce
Have a Drupal site with JSON API 2.x and a content type with image fields.
Configure gatsby-source-drupal, and install the "sharp" related plugins.
Run
gatsby develop
and inspect the schema, (try to query images). You won't see 'localFile'Expected result
My expectation is to use the same style of image query like the drupal example, but I didn't see "localFile" field
https://github.com/gatsbyjs/gatsby/blob/master/examples/using-drupal/src/templates/recipe.js
Actual result
No localFile field in the query.
Environment
The text was updated successfully, but these errors were encountered: