gatsby & graphql : filtering for a specific single image
问题 I don't really understand graphql or gatsby that well but I believe all my images are loaded into graphql by putting this in my gatsby-config.js { resolve: `gatsby-source-filesystem`, options: { name: `images`, path: path.join(__dirname, `src/assets/images`), }, }, I am then trying to query a specific image which I can do with query MyQuery { allImageSharp(filter: {id: {eq: "7acfccd5-4aef-532b-8889-9d844ae2068b"}}) { edges { node { sizes { sizes srcSet src aspectRatio } id } } } } And this