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 Starships

This GraphQL query fetches All Starships


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
query allStarships {
      starships (skip: 0, limit: 3) {
        results {
          ACL
          MGLT
          cargoCapacity
          consumables
          costInCredits
          createdAt
          crew
          films (skip: 0, limit: 3) {
            results {
              id
            }
          }
          hyperdriveRating
          id
          length
          manufacturer
          maxAtmospheringSpeed
          model
          name
          passengers
          pilots (skip: 0, limit: 3) {
            results {
              id
            }
          }
          starshipClass
          updatedAt
        }
      }
    }
{
  "data": {
    "starships": {
      "results": [
        {
          "ACL": null,
          "MGLT": 80,
          "cargoCapacity": 110,
          "consumables": "1 week",
          "costInCredits": 134999,
          "createdAt": "2019-12-13T19:42:35.113Z",
          "crew": 2,
          "films": {
            "results": [
              {
                "id": "GteveE4ytb"
              },
              {
                "id": "SFHc9Y4gXA"
              },
              {
                "id": "mRAWzGNBfG"
              }
            ]
          },
          "hyperdriveRating": 1,
          "id": "F5l2KSa4Xk",
          "length": 14,
          "manufacturer": "Koensayr Manufacturing",
          "maxAtmospheringSpeed": null,
          "model": "BTL Y-wing",
          "name": "Y-wing",
          "passengers": 0,
          "pilots": {
            "results": []
          },
          "starshipClass": "assault starfighter",
          "updatedAt": "2019-12-13T19:42:37.828Z"
        },
        {
          "ACL": null,
          "MGLT": 50,
          "cargoCapacity": 80000,
          "consumables": "2 months",
          "costInCredits": 240000,
          "createdAt": "2019-12-13T19:42:35.086Z",
          "crew": 6,
          "films": {
            "results": [
              {
                "id": "SFHc9Y4gXA"
              },
              {
                "id": "mRAWzGNBfG"
              }
            ]
          },
          "hyperdriveRating": 1,
          "id": "GyKsQsPAiW",
          "length": 20,
          "manufacturer": "Sienar Fleet Systems",
          "maxAtmospheringSpeed": 850,
          "model": "Lambda-class T-4a shuttle",
          "name": "Imperial shuttle",
          "passengers": 20,
          "pilots": {
            "results": [
              {
                "id": "26ro24HNce"
              },
              {
                "id": "LPEUlwy4RJ"
              },
              {
                "id": "uFjDJRxIRO"
              }
            ]
          },
          "starshipClass": "Armed government transport",
          "updatedAt": "2019-12-13T19:42:37.828Z"
        },
        {
          "ACL": null,
          "MGLT": 60,
          "cargoCapacity": 3000000,
          "consumables": "1 year",
          "costInCredits": 3500000,
          "createdAt": "2019-12-13T19:42:35.145Z",
          "crew": null,
          "films": {
            "results": [
              {
                "id": "GteveE4ytb"
              },
              {
                "id": "RbyX4ouadm"
              },
              {
                "id": "SFHc9Y4gXA"
              }
            ]
          },
          "hyperdriveRating": 2,
          "id": "Or6puNLEn5",
          "length": 150,
          "manufacturer": "Corellian Engineering Corporation",
          "maxAtmospheringSpeed": 950,
          "model": "CR90 corvette",
          "name": "CR90 corvette",
          "passengers": 600,
          "pilots": {
            "results": []
          },
          "starshipClass": "corvette",
          "updatedAt": "2019-12-13T19:42:37.828Z"
        }
      ]
    }
  }
}