gatsby-image

gatsby & graphql : filtering for a specific single image

爷,独闯天下 提交于 2020-05-30 03:58:16
问题 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

gatsby & graphql : filtering for a specific single image

一个人想着一个人 提交于 2020-05-30 03:54:50
问题 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

gatsby & graphql : filtering for a specific single image

天大地大妈咪最大 提交于 2020-05-30 03:54:09
问题 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

gatsby & graphql : filtering for a specific single image

放肆的年华 提交于 2020-05-30 03:53:28
问题 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