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 Species

This GraphQL query fetches All Species


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
41
42
43
query allSpecies {
      species (skip: 0, limit: 3) {
        results {
          ACL
          averageHeight
          averageLifespan
          classification
          createdAt
          designation
          eyeColors {
              ...on Element {
              value
            }
          }
          films (skip: 0, limit: 3) {
            results {
              id
            }
          }
          hairColors {
              ...on Element {
              value
            }
          }
          homeworld {
            id
          }
          id
          language
          name
          people (skip: 0, limit: 3) {
            results {
              id
            }
          }
          skinColors {
              ...on Element {
              value
            }
          }
          updatedAt
        }
      }
    }
{
  "data": {
    "species": {
      "results": [
        {
          "ACL": null,
          "averageHeight": 180,
          "averageLifespan": 120,
          "classification": "mammal",
          "createdAt": "2019-12-13T19:42:33.074Z",
          "designation": "sentient",
          "eyeColors": [
            {
              "value": "brown"
            },
            {
              "value": "blue"
            },
            {
              "value": "green"
            },
            {
              "value": "hazel"
            },
            {
              "value": "grey"
            },
            {
              "value": "amber"
            }
          ],
          "films": {
            "results": [
              {
                "id": "GteveE4ytb"
              },
              {
                "id": "NtEIWnlRYH"
              },
              {
                "id": "RbyX4ouadm"
              }
            ]
          },
          "hairColors": [
            {
              "value": "blonde"
            },
            {
              "value": "brown"
            },
            {
              "value": "black"
            },
            {
              "value": "red"
            }
          ],
          "homeworld": {
            "id": "AmxEngCKLr"
          },
          "id": "fqQdXdCHzs",
          "language": "Galactic Basic",
          "name": "Human",
          "people": {
            "results": [
              {
                "id": "LZuFvEayY1"
              },
              {
                "id": "dKlPZIXAYT"
              },
              {
                "id": "tsKWrvOV89"
              }
            ]
          },
          "skinColors": [
            {
              "value": "caucasian"
            },
            {
              "value": "black"
            },
            {
              "value": "asian"
            },
            {
              "value": "hispanic"
            }
          ],
          "updatedAt": "2019-12-13T19:42:37.230Z"
        },
        {
          "ACL": null,
          "averageHeight": 190,
          "averageLifespan": null,
          "classification": "amphibian",
          "createdAt": "2019-12-13T19:42:33.090Z",
          "designation": "sentient",
          "eyeColors": [
            {
              "value": "orange"
            }
          ],
          "films": {
            "results": [
              {
                "id": "NtEIWnlRYH"
              },
              {
                "id": "fMoDABNwV9"
              }
            ]
          },
          "hairColors": [
            {
              "value": "none"
            }
          ],
          "homeworld": {
            "id": "6EhvyQR6tl"
          },
          "id": "BGcZHFZFY2",
          "language": "Gungan basic",
          "name": "Gungan",
          "people": {
            "results": [
              {
                "id": "3p1fbNLGwf"
              },
              {
                "id": "BWtaxWrsSy"
              },
              {
                "id": "KXxAhWYcms"
              }
            ]
          },
          "skinColors": [
            {
              "value": "brown"
            },
            {
              "value": "green"
            }
          ],
          "updatedAt": "2019-12-13T19:42:37.230Z"
        },
        {
          "ACL": null,
          "averageHeight": 100,
          "averageLifespan": null,
          "classification": "mammal",
          "createdAt": "2019-12-13T19:42:33.130Z",
          "designation": "sentient",
          "eyeColors": [
            {
              "value": "orange"
            },
            {
              "value": "brown"
            }
          ],
          "films": {
            "results": [
              {
                "id": "SFHc9Y4gXA"
              }
            ]
          },
          "hairColors": [
            {
              "value": "white"
            },
            {
              "value": "brown"
            },
            {
              "value": "black"
            }
          ],
          "homeworld": {
            "id": "XkKWE6DYG2"
          },
          "id": "2GFwsvrHL6",
          "language": "Ewokese",
          "name": "Ewok",
          "people": {
            "results": [
              {
                "id": "FHPqlIexEv"
              }
            ]
          },
          "skinColors": [
            {
              "value": "brown"
            }
          ],
          "updatedAt": "2019-12-13T19:42:37.230Z"
        }
      ]
    }
  }
}