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

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

78
259
78
259
  • DatabaseDatabase
  • GraphQL API PlaygroundAPI Playground
  • Get Started GuideGet Started
  • IssuesIssues
  • ContributorsContributors
  • Database
    Database
    Get Started Guide
    Get Started
    Issues
    Issues
    Contributors
    Contributors

All Films

This GraphQL query fetches All Films


0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
query allFilms {
      films (skip: 0, limit: 3) {
        results {
          ACL
          characters (skip: 0, limit: 3) {
            results {
              id
            }
          }
          createdAt
          director
          episodeId
          id
          openingCrawl
          planets (skip: 0, limit: 3) {
            results {
              id
            }
          }
          producer
          releaseDate
          species (skip: 0, limit: 3) {
            results {
              id
            }
          }
          starships (skip: 0, limit: 3) {
            results {
              id
            }
          }
          title
          updatedAt
          vehicles (skip: 0, limit: 3) {
            results {
              id
            }
          }
        }
      }
    }
{
  "data": {
    "films": {
      "results": [
        {
          "ACL": null,
          "characters": {
            "results": [
              {
                "id": "0teUVBC5WU"
              },
              {
                "id": "1bnytxJvoC"
              },
              {
                "id": "26ro24HNce"
              }
            ]
          },
          "createdAt": "2019-12-13T19:42:35.590Z",
          "director": "George Lucas",
          "episodeId": 4,
          "id": "GteveE4ytb",
          "openingCrawl": "It is a period of civil war.\r\nRebel spaceships, striking\r\nfrom a hidden base, have won\r\ntheir first victory against\r\nthe evil Galactic Empire.\r\n\r\nDuring the battle, Rebel\r\nspies managed to steal secret\r\nplans to the Empire's\r\nultimate weapon, the DEATH\r\nSTAR, an armored space\r\nstation with enough power\r\nto destroy an entire planet.\r\n\r\nPursued by the Empire's\r\nsinister agents, Princess\r\nLeia races home aboard her\r\nstarship, custodian of the\r\nstolen plans that can save her\r\npeople and restore\r\nfreedom to the galaxy....",
          "planets": {
            "results": [
              {
                "id": "43NzGsaO90"
              },
              {
                "id": "JNgiSeuJwR"
              },
              {
                "id": "PL36fSGLoW"
              }
            ]
          },
          "producer": "Gary Kurtz, Rick McCallum",
          "releaseDate": "1977-05-25T00:00:00.000Z",
          "species": {
            "results": [
              {
                "id": "5ZKmevbH7l"
              },
              {
                "id": "8iMHl5QIZb"
              },
              {
                "id": "DMwLWstosP"
              }
            ]
          },
          "starships": {
            "results": [
              {
                "id": "ERk3O2ELin"
              },
              {
                "id": "F5l2KSa4Xk"
              },
              {
                "id": "Or6puNLEn5"
              }
            ]
          },
          "title": "A New Hope",
          "updatedAt": "2019-12-13T19:42:35.590Z",
          "vehicles": {
            "results": [
              {
                "id": "51N0xPOb9B"
              },
              {
                "id": "DJIm9mYksz"
              },
              {
                "id": "SLxC6CPcEL"
              }
            ]
          }
        },
        {
          "ACL": null,
          "characters": {
            "results": [
              {
                "id": "1NXrmiChSe"
              },
              {
                "id": "1oc8F4xS7t"
              },
              {
                "id": "3dtywptX5F"
              }
            ]
          },
          "createdAt": "2019-12-13T19:42:35.472Z",
          "director": "George Lucas",
          "episodeId": 1,
          "id": "fMoDABNwV9",
          "openingCrawl": "Turmoil has engulfed the\r\nGalactic Republic. The taxation\r\nof trade routes to outlying star\r\nsystems is in dispute.\r\n\r\nHoping to resolve the matter\r\nwith a blockade of deadly\r\nbattleships, the greedy Trade\r\nFederation has stopped all\r\nshipping to the small planet\r\nof Naboo.\r\n\r\nWhile the Congress of the\r\nRepublic endlessly debates\r\nthis alarming chain of events,\r\nthe Supreme Chancellor has\r\nsecretly dispatched two Jedi\r\nKnights, the guardians of\r\npeace and justice in the\r\ngalaxy, to settle the conflict....",
          "planets": {
            "results": [
              {
                "id": "6EhvyQR6tl"
              },
              {
                "id": "AmxEngCKLr"
              },
              {
                "id": "PL36fSGLoW"
              }
            ]
          },
          "producer": "Rick McCallum",
          "releaseDate": "1999-05-19T00:00:00.000Z",
          "species": {
            "results": [
              {
                "id": "4NgpbeTTAz"
              },
              {
                "id": "5ZKmevbH7l"
              },
              {
                "id": "6hYc0wSwEI"
              }
            ]
          },
          "starships": {
            "results": [
              {
                "id": "9lTVqvWu97"
              },
              {
                "id": "n18UV3HGbg"
              },
              {
                "id": "nY2fTXX1F1"
              }
            ]
          },
          "title": "The Phantom Menace",
          "updatedAt": "2019-12-13T19:42:35.472Z",
          "vehicles": {
            "results": [
              {
                "id": "AkwpyZDVub"
              },
              {
                "id": "I7hL5RqIOf"
              },
              {
                "id": "ICWlyWg0Mu"
              }
            ]
          }
        },
        {
          "ACL": null,
          "characters": {
            "results": [
              {
                "id": "0teUVBC5WU"
              },
              {
                "id": "26ro24HNce"
              },
              {
                "id": "2INvsFHinF"
              }
            ]
          },
          "createdAt": "2019-12-13T19:42:35.473Z",
          "director": "Richard Marquand",
          "episodeId": 6,
          "id": "SFHc9Y4gXA",
          "openingCrawl": "Luke Skywalker has returned to\r\nhis home planet of Tatooine in\r\nan attempt to rescue his\r\nfriend Han Solo from the\r\nclutches of the vile gangster\r\nJabba the Hutt.\r\n\r\nLittle does Luke know that the\r\nGALACTIC EMPIRE has secretly\r\nbegun construction on a new\r\narmored space station even\r\nmore powerful than the first\r\ndreaded Death Star.\r\n\r\nWhen completed, this ultimate\r\nweapon will spell certain doom\r\nfor the small band of rebels\r\nstruggling to restore freedom\r\nto the galaxy...",
          "planets": {
            "results": [
              {
                "id": "6EhvyQR6tl"
              },
              {
                "id": "AmxEngCKLr"
              },
              {
                "id": "PL36fSGLoW"
              }
            ]
          },
          "producer": "Howard G. Kazanjian, George Lucas, Rick McCallum",
          "releaseDate": "1983-05-25T00:00:00.000Z",
          "species": {
            "results": [
              {
                "id": "2GFwsvrHL6"
              },
              {
                "id": "5ZKmevbH7l"
              },
              {
                "id": "AANjhB1bPT"
              }
            ]
          },
          "starships": {
            "results": [
              {
                "id": "ERk3O2ELin"
              },
              {
                "id": "F5l2KSa4Xk"
              },
              {
                "id": "GyKsQsPAiW"
              }
            ]
          },
          "title": "Return of the Jedi",
          "updatedAt": "2019-12-13T19:42:35.473Z",
          "vehicles": {
            "results": [
              {
                "id": "2RMOc7zzkj"
              },
              {
                "id": "AtFEKIwfzK"
              },
              {
                "id": "DJIm9mYksz"
              }
            ]
          }
        }
      ]
    }
  }
}