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

  1. Back4App
  2. World Continents, Countries, and Cities
Public

1210
5630
1210
5630
  • DatabaseDatabase
  • GraphQL API PlaygroundAPI Playground
  • Get Started GuideGet Started
  • IssuesIssues
  • ContributorsContributors
  • Database
    Database
    Get Started Guide
    Get Started
    Issues
    Issues
    Contributors
    Contributors

All Countries

This GraphQL query fetches All Countries


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
query allCountries {
      countries (skip: 0, limit: 3) {
        results {
          ACL
          capital
          cities (skip: 0, limit: 3) {
            results {
              id
            }
          }
          code
          continent {
            id
          }
          createdAt
          currency
          emoji
          emojiU
          id
          languages (skip: 0, limit: 3) {
            results {
              id
            }
          }
          name
          native
          phone
          updatedAt
        }
      }
    }
{
  "data": {
    "countries": {
      "results": [
        {
          "ACL": null,
          "capital": "Andorra la Vella",
          "cities": {
            "results": [
              {
                "id": "yWp558Fr2m"
              },
              {
                "id": "vW6EoMjWj5"
              },
              {
                "id": "eRjFMmUuJC"
              }
            ]
          },
          "code": "AD",
          "continent": {
            "id": "28HX8qDZHw"
          },
          "createdAt": "2019-12-09T21:04:54.350Z",
          "currency": "EUR",
          "emoji": "🇦🇩",
          "emojiU": "U+1F1E6 U+1F1E9",
          "id": "sv7fjDVISU",
          "languages": {
            "results": [
              {
                "id": "2MzEUzqPbB"
              }
            ]
          },
          "name": "Andorra",
          "native": "Andorra",
          "phone": "376",
          "updatedAt": "2020-04-13T18:18:18.830Z"
        },
        {
          "ACL": null,
          "capital": "Sucre",
          "cities": {
            "results": [
              {
                "id": "zxULaKxb3H"
              },
              {
                "id": "zDubj2DuC8"
              },
              {
                "id": "wUnzq38l2N"
              }
            ]
          },
          "code": "BO",
          "continent": {
            "id": "ISPUD93Or8"
          },
          "createdAt": "2019-12-09T21:14:43.110Z",
          "currency": "BOB,BOV",
          "emoji": "🇧🇴",
          "emojiU": "U+1F1E7 U+1F1F4",
          "id": "PdgGA5Y5Tt",
          "languages": {
            "results": [
              {
                "id": "HsJGht1G4p"
              },
              {
                "id": "hSOPHGgDrA"
              },
              {
                "id": "k8hGSgdlih"
              }
            ]
          },
          "name": "Bolivia",
          "native": "Bolivia",
          "phone": "591",
          "updatedAt": "2020-04-13T18:19:10.703Z"
        },
        {
          "ACL": null,
          "capital": "Manama",
          "cities": {
            "results": [
              {
                "id": "qjWeVBtiaT"
              },
              {
                "id": "pz0cQvdM5v"
              },
              {
                "id": "fCj4UPbDUU"
              }
            ]
          },
          "code": "BH",
          "continent": {
            "id": "mSxk54vkg6"
          },
          "createdAt": "2019-12-09T21:13:49.022Z",
          "currency": "BHD",
          "emoji": "🇧🇭",
          "emojiU": "U+1F1E7 U+1F1ED",
          "id": "gXKD3sCcJI",
          "languages": {
            "results": [
              {
                "id": "UzdT6aXzkD"
              }
            ]
          },
          "name": "Bahrain",
          "native": "‏البحرين",
          "phone": "973",
          "updatedAt": "2020-04-13T18:16:30.086Z"
        }
      ]
    }
  }
}