See what's launched

The next gen Gatsby is here Performance, developer velocity, and scaling to meet Enterprise needs - See what’s launched

Sign Up for Free
Community Plugin
View plugin on GitHub

gatsby-source-pokedex

First gen pokedex source plugin

Install

npm i --save gatsby-source-pokedex

How to use

// gatsby-config.js

module.exports = {
  plugins: [
    `gatsby-source-pokedex`
  ]
}
query {
  allPokemon {
    nodes {
      number
      name
      type
      base {
        HP
        Attack
        Defense
        Sp__Attack
        Sp__Defense
        Speed
      }
      image {
        childImageSharp {
          fixed(width: 125, height: 125, quality: 100) {
            ...GatsbyImageSharpFixed_withWebp
          }
        }
      }
    }
  }
}
© 2022 Gatsby, Inc.