The Database Hub | Back4App
The Database Hub | Back4App
How it works
  • Log In
  • Sign Up

  1. davimacedo
  2. SWAPI - The Star Wars API
Public

80
273
80
273
  • DatabaseDatabase
  • GraphQL API PlaygroundAPI Playground
  • Get Started GuideGet Started
  • IssuesIssues
  • ContributorsContributors
  • Database
    Database
    Get Started Guide
    Get Started
    Issues
    Issues
    Contributors
    Contributors
0
1
# Type your query
NotesNotes

The Star Wars GraphQL API Playground - SWAPI in GraphQL

Play around with the Star Wars GraphQL API. Try the examples below.

All Films and their Characters

query AllFilms {
  films(order: [releaseDate_ASC]) {
    results{
      releaseDate
      episodeId
      title
     	characters {
        count
        results {
          name
          homeworld {
            name
          }
          species {
            results {
              name
            }
          }
          vehicles {
            results {
              name
              model
            }
          }
          starships {
            results {
              name
              model
            }
          }
        }
      }
    }
  }
}

10 Most Popular Planets

query TenMostPopularPlanets {
  planets(order: [population_DESC], limit: 10) {
    results {
      name
      population
      species {
        results {
          name
        }
      }
      residents {
        results {
          name
        }
      }
    }
  }
}