docs: document node example

This commit is contained in:
Alessandro Pezzè 2021-04-10 20:07:24 +02:00
parent ca1ecb43eb
commit 72dcb019f2
2 changed files with 23 additions and 0 deletions

View 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
View 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=="
}
}
}