Source plugin for pulling pokemon data into Gatsby.
-
npm install gatsby-source-pokemons
-
add
gatsby-source-pokemons
to your plugin array ingatsby-config.js
-
Navigate to
localhost:8000/__graphql
to viewallPokemons
query type.
see example repo
allPokemons {
nodes {
name
id
total
hp
sp_def
sp_atk
defense
attack
type
speed
national_number
natl_num(as int)
sprites {
normal
large (not available on pokemon after national_number 721)
}
}
}
}