Frederic G. MARAND 62cb217de9 Original version from Abhi Aiyer. %!s(int64=7) %!d(string=hai) anos
..
.babelrc 62cb217de9 Original version from Abhi Aiyer. %!s(int64=7) %!d(string=hai) anos
.gitignore 62cb217de9 Original version from Abhi Aiyer. %!s(int64=7) %!d(string=hai) anos
LICENSE.txt 62cb217de9 Original version from Abhi Aiyer. %!s(int64=7) %!d(string=hai) anos
README.md 62cb217de9 Original version from Abhi Aiyer. %!s(int64=7) %!d(string=hai) anos
index.js 62cb217de9 Original version from Abhi Aiyer. %!s(int64=7) %!d(string=hai) anos
package.json 62cb217de9 Original version from Abhi Aiyer. %!s(int64=7) %!d(string=hai) anos
schema.js 62cb217de9 Original version from Abhi Aiyer. %!s(int64=7) %!d(string=hai) anos
swapi.js 62cb217de9 Original version from Abhi Aiyer. %!s(int64=7) %!d(string=hai) anos
yarn.lock 62cb217de9 Original version from Abhi Aiyer. %!s(int64=7) %!d(string=hai) anos

README.md

A GraphQL endpoint for the Star Wars API, generated from the JSON Schema provided.

Running

Install with:

npm install

Run with:

npm start

Running queries

Go to the following URL in your browser to see GraphiQL:

http://localhost:3000/graphql

Here's an example of a query you can run:

{
  people {
    name,
    starships {
      name,
      length
    }
  }
}

The server console will print a list of all of the URLs fetched. Thanks to dataloader, we only request each URL once instead of loading it for each subtree of the query.