项目
在 GitHub 查看
lucasbento/graphql-pokemon
关于
使用 GraphQL 获取 Pokémon 的信息!
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
GraphQL Pokémon
Get information of a Pokémon with GraphQL!
See the GraphiQL interface
How to use
Simply get Pokémon's information through queries in GraphQL, example:
query {
pokemon(name: "Pikachu") {
id
number
name
attacks {
special {
name
type
damage
}
}
evolutions {
id
number
name
weight {
minimum
maximum
}
attacks {
fast {
name
type
damage
}
}
}
}
}
Try this query here!
Check out the React Relay Pokémon Project and Live Demo too!
Running
Production
yarn
yarn run build-app
yarn start
Development
yarn
yarn run watch # Using nodemon for auto-reloading
or
vercel dev # npm i -g @now/cli
Disclaimer
This was built as part of a talk on Relay & GraphQL at @ReactSP meetup, check us out, we build cool stuff. ;)
Related Projects
- Pokemon Gopher - Fetch information about pokémons with GraphQL and GO 🙂
探索相关项目
加载中…