项目作者: d-sanderson

项目描述 :
gatsby source plugin
高级语言: JavaScript
项目地址: git://github.com/d-sanderson/gatsby-source-pokemons.git
创建时间: 2020-05-02T18:48:02Z
项目社区:https://github.com/d-sanderson/gatsby-source-pokemons

开源协议:MIT License

下载




Gatsby Source Pokemons Plugin

Source plugin for pulling pokemon data into Gatsby.

How to install

Within the root of your Gatsby Project:

  1. npm install gatsby-source-pokemons

  2. add gatsby-source-pokemons to your plugin array in gatsby-config.js

  3. Navigate to localhost:8000/__graphql to view allPokemons query type.

Examples of usage

see example repo

  1. allPokemons {
  2. nodes {
  3. name
  4. id
  5. total
  6. hp
  7. sp_def
  8. sp_atk
  9. defense
  10. attack
  11. type
  12. speed
  13. national_number
  14. natl_num(as int)
  15. sprites {
  16. normal
  17. large (not available on pokemon after national_number 721)
  18. }
  19. }
  20. }
  21. }