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 Characters

This GraphQL query fetches All Characters


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 allCharacters {
      characters (skip: 0, limit: 3) {
        results {
          ACL
          birthYear
          createdAt
          eyeColor
          films (skip: 0, limit: 3) {
            results {
              id
            }
          }
          gender
          hairColor
          height
          homeworld {
            id
          }
          id
          mass
          name
          skinColor
          species (skip: 0, limit: 3) {
            results {
              id
            }
          }
          starships (skip: 0, limit: 3) {
            results {
              id
            }
          }
          updatedAt
          vehicles (skip: 0, limit: 3) {
            results {
              id
            }
          }
        }
      }
    }
{
  "data": {
    "characters": {
      "results": [
        {
          "ACL": null,
          "birthYear": "57BBY",
          "createdAt": "2019-12-13T19:42:31.498Z",
          "eyeColor": "blue-gray",
          "films": {
            "results": [
              {
                "id": "GteveE4ytb"
              },
              {
                "id": "NtEIWnlRYH"
              },
              {
                "id": "RbyX4ouadm"
              }
            ]
          },
          "gender": "male",
          "hairColor": "auburn, white",
          "height": 182,
          "homeworld": {
            "id": "Fwz1bh8rSD"
          },
          "id": "nxpAPnATEb",
          "mass": 77,
          "name": "Obi-Wan Kenobi",
          "skinColor": "fair",
          "species": {
            "results": []
          },
          "starships": {
            "results": [
              {
                "id": "PcHTkdaQZM"
              },
              {
                "id": "hoJsNB1dYq"
              },
              {
                "id": "isut9lrQGD"
              }
            ]
          },
          "updatedAt": "2019-12-13T19:42:36.281Z",
          "vehicles": {
            "results": [
              {
                "id": "NdKhSWkcGj"
              }
            ]
          }
        },
        {
          "ACL": null,
          "birthYear": "19BBY",
          "createdAt": "2019-12-13T19:42:31.622Z",
          "eyeColor": "brown",
          "films": {
            "results": [
              {
                "id": "GteveE4ytb"
              },
              {
                "id": "RbyX4ouadm"
              },
              {
                "id": "SFHc9Y4gXA"
              }
            ]
          },
          "gender": "female",
          "hairColor": "brown",
          "height": 150,
          "homeworld": {
            "id": "43NzGsaO90"
          },
          "id": "2INvsFHinF",
          "mass": 49,
          "name": "Leia Organa",
          "skinColor": "light",
          "species": {
            "results": []
          },
          "starships": {
            "results": []
          },
          "updatedAt": "2019-12-13T19:42:36.281Z",
          "vehicles": {
            "results": [
              {
                "id": "2RMOc7zzkj"
              }
            ]
          }
        },
        {
          "ACL": null,
          "birthYear": "8BBY",
          "createdAt": "2019-12-13T19:42:31.663Z",
          "eyeColor": "brown",
          "films": {
            "results": [
              {
                "id": "SFHc9Y4gXA"
              }
            ]
          },
          "gender": "male",
          "hairColor": "brown",
          "height": 88,
          "homeworld": {
            "id": "XkKWE6DYG2"
          },
          "id": "FHPqlIexEv",
          "mass": 20,
          "name": "Wicket Systri Warrick",
          "skinColor": "brown",
          "species": {
            "results": [
              {
                "id": "2GFwsvrHL6"
              }
            ]
          },
          "starships": {
            "results": []
          },
          "updatedAt": "2019-12-13T19:42:36.470Z",
          "vehicles": {
            "results": []
          }
        }
      ]
    }
  }
}