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

  1. Back4App
  2. 🇧🇼 Botswana
Public

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

All Cities

This GraphQL query fetches All Cities


0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
query allCities {
      cities (skip: 0, limit: 3) {
        results {
          ACL
          adminCode
          cityId
          country
          countryCode
          createdAt
          featureCode
          id
          location {
            latitude
            longitude
          }
          name
          population
          updatedAt
        }
      }
    }
{
  "data": {
    "cities": {
      "results": [
        {
          "ACL": null,
          "adminCode": "11",
          "cityId": 933077,
          "country": "Botswana",
          "countryCode": "BW",
          "createdAt": "2019-12-12T19:01:34.832Z",
          "featureCode": "PPL",
          "id": "DHfTLDAWHA",
          "location": {
            "latitude": -18.36536,
            "longitude": 21.84219
          },
          "name": "Shakawe",
          "population": 5651,
          "updatedAt": "2019-12-12T19:01:34.832Z"
        },
        {
          "ACL": null,
          "adminCode": "00",
          "cityId": 932993,
          "country": "Botswana",
          "countryCode": "BW",
          "createdAt": "2019-12-12T19:01:34.832Z",
          "featureCode": "PPL",
          "id": "1KFLeprO6v",
          "location": {
            "latitude": -20.15,
            "longitude": 22.45
          },
          "name": "Tsau",
          "population": 1409,
          "updatedAt": "2019-12-12T19:01:34.832Z"
        },
        {
          "ACL": null,
          "adminCode": "01",
          "cityId": 933112,
          "country": "Botswana",
          "countryCode": "BW",
          "createdAt": "2019-12-12T19:01:34.832Z",
          "featureCode": "PPL",
          "id": "g5KEblhwFc",
          "location": {
            "latitude": -22.18333,
            "longitude": 27.96667
          },
          "name": "Sefophe",
          "population": 4114,
          "updatedAt": "2019-12-12T19:01:34.832Z"
        }
      ]
    }
  }
}