Skip to content
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

GraphQL Error Unknown field allS3ImageAsset on type Query #353

Open
pautena opened this issue Nov 20, 2019 · 1 comment
Open

GraphQL Error Unknown field allS3ImageAsset on type Query #353

pautena opened this issue Nov 20, 2019 · 1 comment

Comments

@pautena
Copy link

pautena commented Nov 20, 2019

Hi, after following your installation instructions when I execute this query inside a page:

export const query = graphql`
query ContentCreatorsQuery {
  allS3ImageAsset {
    edges {
      node {
        ETag
        EXIF {
          DateCreatedISO
        }
      }
    }
  }
}
`;

I receive the following error when run gatsby develop.

GraphQL Error Unknown field `allS3ImageAsset` on type `Query`

Is there any missing step to add the query to the project? I have the following export in the gatsby-config.js

const sourceS3 = {
  resolve: 'gatsby-source-s3-image',
  options: {
    bucketName: 'brawl-stars-map-info-tier',
    domain: null, // [optional] Not necessary to define for AWS S3; defaults to `s3.amazonaws.com`
    protocol: 'https', // [optional] Default to `https`.
  },
}

module.exports = {
  // pathPrefix: config.pathPrefix,
  siteMetadata: {
    title: config.siteTitle,
    description: config.siteDescription,
    siteUrl: config.siteUrl,
    facebook: {
      appId: process.env.FB_APP_ID ? process.env.FB_APP_ID : ""
    }
  },
  plugins: [
    sourceS3,
    ...
  ]
}

@rahul-nath
Copy link

Did you figure this out? I'm getting it too, along with a warning saying no nodes were created with this plugin. I've yet to be able to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants