From 72dcb019f25704ffca5fa680beff722b8f0b8418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alessandro=20Pezz=C3=A8?= Date: Sat, 10 Apr 2021 20:07:24 +0200 Subject: [PATCH] docs: document node example --- graphql/examples/node/README.md | 10 ++++++++++ graphql/examples/node/package-lock.json | 13 +++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 graphql/examples/node/README.md create mode 100644 graphql/examples/node/package-lock.json diff --git a/graphql/examples/node/README.md b/graphql/examples/node/README.md new file mode 100644 index 00000000..075c5388 --- /dev/null +++ b/graphql/examples/node/README.md @@ -0,0 +1,10 @@ +# Node examples + +## `pokemon.js` + +Fetches info about Staryu using `node-fetch`. + +```sh +npm i +node pokemon.js +``` diff --git a/graphql/examples/node/package-lock.json b/graphql/examples/node/package-lock.json new file mode 100644 index 00000000..ff4a6872 --- /dev/null +++ b/graphql/examples/node/package-lock.json @@ -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==" + } + } +}