gatsby-source-s3-image
gatsby-source-s3-image copied to clipboard
GraphQL Error Unknown field `allS3ImageAsset` on type `Query`
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,
...
]
}
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.