GraphQL server for Star Wars API (SWAPI)
yarn install
or
npm install
http://localhost:4000/graphql
Support for
- Characters
- Films
- Vehicles
- Planets
- Starships
- TODO Species
query CharacterQuery($id: String!) {
character(id: $id) {
name
birthYear
eyeColor
gender
hairColor
height
mass
skinColor
}
}
query CharacterQuery($id: String!) {
character(id: $id) {
name
films {
title
}
}
}
query FilmsQuery($id: String!) {
films(id: $id) {
title
releaseDate
director
episodeID
openingCrawl
producer
}
}
- Cache/batch requests
- Rewrite SWAPI service
- Add Species Type
- Add more tests