mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-22 03:13:06 +00:00
docs: document node example
This commit is contained in:
parent
ca1ecb43eb
commit
72dcb019f2
2 changed files with 23 additions and 0 deletions
10
graphql/examples/node/README.md
Normal file
10
graphql/examples/node/README.md
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# Node examples
|
||||||
|
|
||||||
|
## `pokemon.js`
|
||||||
|
|
||||||
|
Fetches info about Staryu using `node-fetch`.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm i
|
||||||
|
node pokemon.js
|
||||||
|
```
|
13
graphql/examples/node/package-lock.json
generated
Normal file
13
graphql/examples/node/package-lock.json
generated
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
"name": "examples",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"lockfileVersion": 1,
|
||||||
|
"requires": true,
|
||||||
|
"dependencies": {
|
||||||
|
"node-fetch": {
|
||||||
|
"version": "2.6.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz",
|
||||||
|
"integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue