|
schema { |
|
query: Root |
|
} |
|
|
|
|
|
type Film { |
|
|
|
title: String |
|
|
|
|
|
episodeID: Int |
|
|
|
|
|
openingCrawl: String |
|
|
|
|
|
director: String |
|
|
|
|
|
producers: [String] |
|
|
|
|
|
releaseDate: String |
|
speciesConnection: FilmSpeciesConnection |
|
starshipConnection: FilmStarshipsConnection |
|
vehicleConnection: FilmVehiclesConnection |
|
characterConnection: FilmCharactersConnection |
|
planetConnection: FilmPlanetsConnection |
|
|
|
|
|
created: String |
|
|
|
|
|
edited: String |
|
|
|
|
|
id: ID! |
|
} |
|
|
|
|
|
type FilmCharactersConnection { |
|
|
|
pageInfo: PageInfo! |
|
|
|
|
|
edges: [FilmCharactersEdge] |
|
|
|
|
|
totalCount: Int |
|
|
|
|
|
characters: [Person] |
|
} |
|
|
|
|
|
type FilmCharactersEdge { |
|
|
|
node: Person |
|
|
|
|
|
cursor: String! |
|
} |
|
|
|
|
|
type FilmPlanetsConnection { |
|
|
|
pageInfo: PageInfo! |
|
|
|
|
|
edges: [FilmPlanetsEdge] |
|
|
|
|
|
totalCount: Int |
|
|
|
|
|
planets: [Planet] |
|
} |
|
|
|
|
|
type FilmPlanetsEdge { |
|
|
|
node: Planet |
|
|
|
|
|
cursor: String! |
|
} |
|
|
|
|
|
type FilmsConnection { |
|
|
|
pageInfo: PageInfo! |
|
|
|
|
|
edges: [FilmsEdge] |
|
|
|
|
|
totalCount: Int |
|
|
|
|
|
films: [Film] |
|
} |
|
|
|
|
|
type FilmsEdge { |
|
|
|
node: Film |
|
|
|
|
|
cursor: String! |
|
} |
|
|
|
|
|
type FilmSpeciesConnection { |
|
|
|
pageInfo: PageInfo! |
|
|
|
|
|
edges: [FilmSpeciesEdge] |
|
|
|
|
|
totalCount: Int |
|
|
|
|
|
species: [Species] |
|
} |
|
|
|
|
|
type FilmSpeciesEdge { |
|
|
|
node: Species |
|
|
|
|
|
cursor: String! |
|
} |
|
|
|
|
|
type FilmStarshipsConnection { |
|
|
|
pageInfo: PageInfo! |
|
|
|
|
|
edges: [FilmStarshipsEdge] |
|
|
|
|
|
totalCount: Int |
|
|
|
|
|
starships: [Starship] |
|
} |
|
|
|
|
|
type FilmStarshipsEdge { |
|
|
|
node: Starship |
|
|
|
|
|
cursor: String! |
|
} |
|
|
|
|
|
type FilmVehiclesConnection { |
|
|
|
pageInfo: PageInfo! |
|
|
|
|
|
edges: [FilmVehiclesEdge] |
|
|
|
|
|
totalCount: Int |
|
|
|
|
|
vehicles: [Vehicle] |
|
} |
|
|
|
|
|
type FilmVehiclesEdge { |
|
|
|
node: Vehicle |
|
|
|
|
|
cursor: String! |
|
} |
|
|
|
|
|
type PageInfo { |
|
|
|
hasNextPage: Boolean! |
|
|
|
|
|
hasPreviousPage: Boolean! |
|
|
|
|
|
startCursor: String |
|
|
|
|
|
endCursor: String |
|
} |
|
|
|
|
|
type PeopleConnection { |
|
|
|
pageInfo: PageInfo! |
|
|
|
|
|
edges: [PeopleEdge] |
|
|
|
|
|
totalCount: Int |
|
|
|
|
|
people: [Person] |
|
} |
|
|
|
|
|
type PeopleEdge { |
|
|
|
node: Person |
|
|
|
|
|
cursor: String! |
|
} |
|
|
|
|
|
type Person { |
|
|
|
name: String |
|
|
|
""" |
|
The birth year of the person, using the in-universe standard of BBY or ABY - |
|
Before the Battle of Yavin or After the Battle of Yavin. The Battle of Yavin is |
|
a battle that occurs at the end of Star Wars episode IV: A New Hope. |
|
""" |
|
birthYear: String |
|
|
|
""" |
|
The eye color of this person. Will be "unknown" if not known or "n/a" if the |
|
person does not have an eye. |
|
""" |
|
eyeColor: String |
|
|
|
""" |
|
The gender of this person. Either "Male", "Female" or "unknown", |
|
"n/a" if the person does not have a gender. |
|
""" |
|
gender: String |
|
|
|
""" |
|
The hair color of this person. Will be "unknown" if not known or "n/a" if the |
|
person does not have hair. |
|
""" |
|
hairColor: String |
|
|
|
|
|
height: Int |
|
|
|
|
|
mass: Float |
|
|
|
|
|
skinColor: String |
|
|
|
|
|
homeworld: Planet |
|
filmConnection: PersonFilmsConnection |
|
|
|
|
|
species: Species |
|
starshipConnection: PersonStarshipsConnection |
|
vehicleConnection: PersonVehiclesConnection |
|
|
|
|
|
created: String |
|
|
|
|
|
edited: String |
|
|
|
|
|
id: ID! |
|
} |
|
|
|
|
|
type PersonFilmsConnection { |
|
|
|
pageInfo: PageInfo! |
|
|
|
|
|
edges: [PersonFilmsEdge] |
|
|
|
|
|
totalCount: Int |
|
|
|
|
|
films: [Film] |
|
} |
|
|
|
|
|
type PersonFilmsEdge { |
|
|
|
node: Film |
|
|
|
|
|
cursor: String! |
|
} |
|
|
|
|
|
type PersonStarshipsConnection { |
|
|
|
pageInfo: PageInfo! |
|
|
|
|
|
edges: [PersonStarshipsEdge] |
|
|
|
|
|
totalCount: Int |
|
|
|
|
|
starships: [Starship] |
|
} |
|
|
|
|
|
type PersonStarshipsEdge { |
|
|
|
node: Starship |
|
|
|
|
|
cursor: String! |
|
} |
|
|
|
|
|
type PersonVehiclesConnection { |
|
|
|
pageInfo: PageInfo! |
|
|
|
|
|
edges: [PersonVehiclesEdge] |
|
|
|
|
|
totalCount: Int |
|
|
|
|
|
vehicles: [Vehicle] |
|
} |
|
|
|
|
|
type PersonVehiclesEdge { |
|
|
|
node: Vehicle |
|
|
|
|
|
cursor: String! |
|
} |
|
|
|
|
|
type Planet { |
|
|
|
name: String |
|
|
|
|
|
diameter: Int |
|
|
|
|
|
rotationPeriod: Int |
|
|
|
|
|
orbitalPeriod: Int |
|
|
|
|
|
gravity: String |
|
|
|
|
|
population: Float |
|
|
|
|
|
climates: [String] |
|
|
|
|
|
terrains: [String] |
|
|
|
|
|
surfaceWater: Float |
|
residentConnection: PlanetResidentsConnection |
|
filmConnection: PlanetFilmsConnection |
|
|
|
|
|
created: String |
|
|
|
|
|
edited: String |
|
|
|
|
|
id: ID! |
|
} |
|
|
|
|
|
type PlanetFilmsConnection { |
|
|
|
pageInfo: PageInfo! |
|
|
|
|
|
edges: [PlanetFilmsEdge] |
|
|
|
|
|
totalCount: Int |
|
|
|
|
|
films: [Film] |
|
} |
|
|
|
|
|
type PlanetFilmsEdge { |
|
|
|
node: Film |
|
|
|
|
|
cursor: String! |
|
} |
|
|
|
|
|
type PlanetResidentsConnection { |
|
|
|
pageInfo: PageInfo! |
|
|
|
|
|
edges: [PlanetResidentsEdge] |
|
|
|
|
|
totalCount: Int |
|
|
|
|
|
residents: [Person] |
|
} |
|
|
|
|
|
type PlanetResidentsEdge { |
|
|
|
node: Person |
|
|
|
|
|
cursor: String! |
|
} |
|
|
|
|
|
type PlanetsConnection { |
|
|
|
pageInfo: PageInfo! |
|
|
|
|
|
edges: [PlanetsEdge] |
|
|
|
|
|
totalCount: Int |
|
|
|
|
|
planets: [Planet] |
|
} |
|
|
|
|
|
type PlanetsEdge { |
|
|
|
node: Planet |
|
|
|
|
|
cursor: String! |
|
} |
|
|
|
type Root { |
|
allFilms: FilmsConnection |
|
film: Film |
|
allPeople: PeopleConnection |
|
person: Person |
|
allPlanets: PlanetsConnection |
|
planet: Planet |
|
allSpecies: SpeciesConnection |
|
species: Species |
|
allStarships: StarshipsConnection |
|
starship: Starship |
|
allVehicles: VehiclesConnection |
|
vehicle: Vehicle |
|
|
|
} |
|
|
|
|
|
type Species { |
|
|
|
name: String |
|
|
|
|
|
classification: String |
|
|
|
|
|
designation: String |
|
|
|
|
|
averageHeight: Float |
|
|
|
|
|
averageLifespan: Int |
|
|
|
|
|
eyeColors: [String] |
|
|
|
|
|
hairColors: [String] |
|
|
|
|
|
skinColors: [String] |
|
|
|
|
|
language: String |
|
|
|
|
|
homeworld: Planet |
|
personConnection: SpeciesPeopleConnection |
|
filmConnection: SpeciesFilmsConnection |
|
|
|
|
|
created: String |
|
|
|
|
|
edited: String |
|
|
|
|
|
id: ID! |
|
} |
|
|
|
|
|
type SpeciesConnection { |
|
|
|
pageInfo: PageInfo! |
|
|
|
|
|
edges: [SpeciesEdge] |
|
|
|
|
|
totalCount: Int |
|
|
|
|
|
species: [Species] |
|
} |
|
|
|
|
|
type SpeciesEdge { |
|
|
|
node: Species |
|
|
|
|
|
cursor: String! |
|
} |
|
|
|
|
|
type SpeciesFilmsConnection { |
|
|
|
pageInfo: PageInfo! |
|
|
|
|
|
edges: [SpeciesFilmsEdge] |
|
|
|
|
|
totalCount: Int |
|
|
|
|
|
films: [Film] |
|
} |
|
|
|
|
|
type SpeciesFilmsEdge { |
|
|
|
node: Film |
|
|
|
|
|
cursor: String! |
|
} |
|
|
|
|
|
type SpeciesPeopleConnection { |
|
|
|
pageInfo: PageInfo! |
|
|
|
|
|
edges: [SpeciesPeopleEdge] |
|
|
|
|
|
totalCount: Int |
|
|
|
|
|
people: [Person] |
|
} |
|
|
|
|
|
type SpeciesPeopleEdge { |
|
|
|
node: Person |
|
|
|
|
|
cursor: String! |
|
} |
|
|
|
|
|
type Starship { |
|
|
|
name: String |
|
|
|
""" |
|
The model or official name of this starship. Such as "T-65 X-wing" or "DS-1 |
|
Orbital Battle Station". |
|
""" |
|
model: String |
|
|
|
|
|
starshipClass: String |
|
|
|
|
|
manufacturers: [String] |
|
|
|
|
|
costInCredits: Float |
|
|
|
|
|
length: Float |
|
|
|
|
|
crew: String |
|
|
|
|
|
passengers: String |
|
|
|
|
|
maxAtmospheringSpeed: Int |
|
|
|
|
|
hyperdriveRating: Float |
|
|
|
""" |
|
The Maximum number of Megalights this starship can travel in a standard hour. |
|
A "Megalight" is a standard unit of distance and has never been defined before |
|
within the Star Wars universe. This figure is only really useful for measuring |
|
the difference in speed of starships. We can assume it is similar to AU, the |
|
distance between our Sun (Sol) and Earth. |
|
""" |
|
MGLT: Int |
|
|
|
|
|
cargoCapacity: Float |
|
|
|
|
|
consumables: String |
|
pilotConnection: StarshipPilotsConnection |
|
filmConnection: StarshipFilmsConnection |
|
|
|
|
|
created: String |
|
|
|
|
|
edited: String |
|
|
|
|
|
id: ID! |
|
} |
|
|
|
|
|
type StarshipFilmsConnection { |
|
|
|
pageInfo: PageInfo! |
|
|
|
|
|
edges: [StarshipFilmsEdge] |
|
|
|
|
|
totalCount: Int |
|
|
|
|
|
films: [Film] |
|
} |
|
|
|
|
|
type StarshipFilmsEdge { |
|
|
|
node: Film |
|
|
|
|
|
cursor: String! |
|
} |
|
|
|
|
|
type StarshipPilotsConnection { |
|
|
|
pageInfo: PageInfo! |
|
|
|
|
|
edges: [StarshipPilotsEdge] |
|
|
|
|
|
totalCount: Int |
|
|
|
|
|
pilots: [Person] |
|
} |
|
|
|
|
|
type StarshipPilotsEdge { |
|
|
|
node: Person |
|
|
|
|
|
cursor: String! |
|
} |
|
|
|
|
|
type StarshipsConnection { |
|
|
|
pageInfo: PageInfo! |
|
|
|
|
|
edges: [StarshipsEdge] |
|
|
|
|
|
totalCount: Int |
|
|
|
|
|
starships: [Starship] |
|
} |
|
|
|
|
|
type StarshipsEdge { |
|
|
|
node: Starship |
|
|
|
|
|
cursor: String! |
|
} |
|
|
|
|
|
type Vehicle { |
|
|
|
name: String |
|
|
|
""" |
|
The model or official name of this vehicle. Such as "All-Terrain Attack |
|
Transport". |
|
""" |
|
model: String |
|
|
|
|
|
vehicleClass: String |
|
|
|
|
|
manufacturers: [String] |
|
|
|
|
|
costInCredits: Float |
|
|
|
|
|
length: Float |
|
|
|
|
|
crew: String |
|
|
|
|
|
passengers: String |
|
|
|
|
|
maxAtmospheringSpeed: Int |
|
|
|
|
|
cargoCapacity: Float |
|
|
|
|
|
consumables: String |
|
pilotConnection: VehiclePilotsConnection |
|
filmConnection: VehicleFilmsConnection |
|
|
|
|
|
created: String |
|
|
|
|
|
edited: String |
|
|
|
|
|
id: ID! |
|
} |
|
|
|
|
|
type VehicleFilmsConnection { |
|
|
|
pageInfo: PageInfo! |
|
|
|
|
|
edges: [VehicleFilmsEdge] |
|
|
|
|
|
totalCount: Int |
|
|
|
|
|
films: [Film] |
|
} |
|
|
|
|
|
type VehicleFilmsEdge { |
|
|
|
node: Film |
|
|
|
|
|
cursor: String! |
|
} |
|
|
|
|
|
type VehiclePilotsConnection { |
|
|
|
pageInfo: PageInfo! |
|
|
|
|
|
edges: [VehiclePilotsEdge] |
|
|
|
|
|
totalCount: Int |
|
|
|
pilots: [Person] |
|
} |
|
|
|
|
|
type VehiclePilotsEdge { |
|
|
|
node: Person |
|
|
|
|
|
cursor: String! |
|
} |
|
|
|
|
|
type VehiclesConnection { |
|
|
|
pageInfo: PageInfo! |
|
|
|
|
|
edges: [VehiclesEdge] |
|
|
|
|
|
totalCount: Int |
|
|
|
vehicles: [Vehicle] |
|
} |
|
|
|
|
|
type VehiclesEdge { |
|
|
|
node: Vehicle |
|
|
|
|
|
cursor: String! |
|
} |