Skip to content

aatxxe/studio-ghibli-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

studio-ghibli-graphql

🐼 The Unofficial Studio Ghibli GraphQL. Graphed from mazipan/ghibli-api.

Base URL

https://studio-ghibli-graphql.vercel.app

Index

Query Field Description
films Get all Films
films(id) Get Film by ID
people Get all People
people(id) Get Person by ID
locations Get all Locations
locations(id) Get Location by ID
species Get all Species
species(id) Get Species by ID
vehicles Get all Vehicles
vehicles(id) Get Vehicle by ID
Type Field Description
Film Defines a Film
Person Defines a Person
Location Defines a Location
Specimen Defines a Specimen
Vehicle Defines a Vehicle

GraphQL Schema Documentation

This GraphQL schema defines queries for information related to ghibli-api. It includes types for Studio Ghibli films, people, species, locations, and vehicles.

Queries

Query Films

  • Returns a list of films.
  • Input: None
  • Output: List of Film objects.

Example Query:

query {
  films {
    id
    title
    description
  }
}

Example JSON Result:

{
  "data": {
    "films": [
      {
        "id": "1",
        "title": "My Neighbor Totoro",
        "description": "A delightful tale of two sisters and a forest spirit."
      },
      {
        "id": "2",
        "title": "Spirited Away",
        "description": "A young girl's adventure in a mysterious and magical world."
      }
      // ... Other film objects
    ]
  }
}

Index ⤴️

Query Film

  • Returns information about a specific film by its ID.
  • Input: Film ID (String)
  • Output: Film object.

Example Query:

query {
  film(id: "1") {
    id
    title
    description
    director
  }
}

Example JSON Result:

{
  "data": {
    "film": {
      "id": "1",
      "title": "My Neighbor Totoro",
      "description": "A delightful tale of two sisters and a forest spirit.",
      "director": "Hayao Miyazaki"
    }
  }
}

Index ⤴️

Query People

  • Returns a list of people.
  • Input: None
  • Output: List of Person objects.

Example Query:

query {
  people {
    id
    name
    gender
    age
  }
}

Example JSON Result:

{
  "data": {
    "people": [
      {
        "id": "1",
        "name": "Satsuki Kusakabe",
        "gender": "Female",
        "age": "11"
      },
      {
        "id": "2",
        "name": "Mei Kusakabe",
        "gender": "Female",
        "age": "4"
      }
      // ... Other person objects
    ]
  }
}

Index ⤴️

Query Person

  • Returns information about a specific person by their ID.
  • Input: Person ID (String)
  • Output: Person object.

Example Query:

query {
  person(id: "1") {
    id
    name
    gender
    age
  }
}

Example JSON Result:

{
  "data": {
    "person": {
      "id": "1",
      "name": "Satsuki Kusakabe",
      "gender": "Female",
      "age": "11"
    }
  }
}

Index ⤴️

Query Species

  • Returns a list of species.
  • Input: None
  • Output: List of Specimen objects.

Example Query:

query {
  species {
    id
    name
    classification
  }
}

Example JSON Result:

{
  "data": {
    "species": [
      {
        "id": "1",
        "name": "Totoro",
        "classification": "Spirit"
      },
      {
        "id": "2",
        "name": "Susuwatari",
        "classification": "Soot Sprite"
      }
      // ... Other species objects
    ]
  }
}

Index ⤴️

Query Specimen

  • Returns information about a specific specimen by its ID.
  • Input: Specimen ID (String)
  • Output: Specimen object.

Example Query:

query {
  specimen(id: "1") {
    id
    name
    classification
  }
}

Example JSON Result:

{
  "data": {
    "specimen": {
      "id": "1",
      "name": "Totoro",
      "classification": "Spirit"
    }
  }
}

Index ⤴️

Query Locations

  • Returns a list of locations.
  • Input: None
  • Output: List of Location objects.

Example Query:

query {
  locations {
    id
    name
    climate
  }
}

Example JSON Result:

{
  "data": {
    "locations": [
      {
        "id": "1",
        "name": "Satsuki and Mei's House",
        "climate": "Mild"
      },
      {
        "id": "2",
        "name": "Spirit Realm",
        "climate": "Mysterious"
      }
      // ... Other location objects
    ]
  }
}

Index ⤴️

Query Location

  • Returns information about a specific location by its ID.
  • Input: Location ID (String)
  • Output: Location object.

Example Query:

query {
  location(id: "1") {
    id
    name
    climate
  }
}

Example JSON Result:

{
  "data": {
    "location": {
      "id": "1",
      "name": "Satsuki and Mei's House",
      "climate": "Mild"
    }
  }
}

Index ⤴️

Query Vehicles

  • Returns a list of vehicles.
  • Input: None
  • Output: List of Vehicle objects.

Example Query:

query {
  vehicles {
    id
    name
    vehicle_class
  }
}

Example JSON Result:

{
  "data": {
    "vehicles": [
      {
        "id": "1",
        "name": "Catbus",
        "vehicle_class": "Magical Creature"
      },
      {
        "id": "2",
        "name": "Porco Rosso's Plane",
        "vehicle_class": "Seaplane"
      }
      // ... Other vehicle objects
    ]
  }
}

Index ⤴️

Query Vehicle

  • Returns information about a specific vehicle by its ID.
  • Input: Vehicle ID (String)
  • Output: Vehicle object.

Example Query:

query {
  vehicle(id: "1") {
    id
    name
    description
  }
}

Example JSON Result:

{
  "data": {
    "vehicle": {
      "id": "1",
      "name": "Catbus",
      "description": "A large, friendly cat-shaped bus."
    }
  }
}

Index ⤴️

Types

Type Film

  • Represents a Film.
  • Fields:
    • id: Unique identifier (String)
    • title: Title of the film (String)
    • original_title: Original title (String)
    • original_title_romanised: Romanized original title (String)
    • image: URL of the film's image (String)
    • movie_banner: URL of the movie banner (String)
    • description: Film description (String)
    • director: Director's name (String)
    • producer: Producer's name (String)
    • released_date: Release date (Integer)
    • running_time: Running time (Integer)
    • rt_score: Rotten Tomatoes score (Integer)
    • people: List of associated people (List of Person)
    • species: List of associated species (List of Specimen)
    • locations: List of associated locations (List of Location)
    • url: API url reference of the film (String)

Index ⤴️

Type Person

  • Represents people or a Person.
  • Fields:
    • id: Unique identifier (String)
    • name: Name of the person (String)
    • gender: Gender (String)
    • age: Age (String)
    • eye_color: Eye color (String)
    • hair_color: Hair color (String)
    • films: List of associated films (List of Film)
    • species: Associated species (Specimen)
    • url: API url reference of the person (String)

Index ⤴️

Type Specimen

  • Represents a species or Specimen.
  • Fields:
    • id: Unique identifier (String)
    • name: Name of the species (String)
    • classification: Classification (String)
    • eye_colors: Eye colors (String)
    • hair_colors: Hair colors (String)
    • people: List of associated people (List of Person)
    • films: List of associated films (List of Film)
    • url: API url reference of the species (String)

Index ⤴️

Type Location

  • Represents a Location.
  • Fields:
    • id: Unique identifier (String)
    • name: Name of the location (String)
    • climate: Climate of the location (String)
    • terrain: Terrain of the location (String)
    • surface_water: Surface water description (String)
    • residents: List of residents (List of Person)
    • films: List of associated films (List of Film)
    • url: API url reference of the location (String)

Index ⤴️

Type Vehicle

  • Represents a Vehicle.
  • Fields:
    • id: Unique identifier (String)
    • name: Name of the vehicle (String)
    • description: Description of the vehicle (String)
    • vehicle_class: Vehicle class (String)
    • length: Length of the vehicle (String)
    • pilot: Pilot of the vehicle (Person)
    • films: List of associated films (List of Film)
    • url: API url reference of the vehicle (String)

Index ⤴️


© 2023, By @aatxxe

About

🐼 The Unofficial Ghibli Studio GraphQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published