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

  1. Back4App
  2. 🇧🇭 Bahrain
Public

12
10
12
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": "17",
          "cityId": 290187,
          "country": "Bahrain",
          "countryCode": "BH",
          "createdAt": "2019-12-12T18:55:11.000Z",
          "featureCode": "PPL",
          "id": "D81vCqAqK3",
          "location": {
            "latitude": 26.17361,
            "longitude": 50.54778
          },
          "name": "Madīnat ‘Īsá",
          "population": 38090,
          "updatedAt": "2019-12-12T18:55:11.000Z"
        },
        {
          "ACL": null,
          "adminCode": "19",
          "cityId": 290247,
          "country": "Bahrain",
          "countryCode": "BH",
          "createdAt": "2019-12-12T18:55:11.000Z",
          "featureCode": "PPL",
          "id": "RvcAIr3C7i",
          "location": {
            "latitude": 26.11528,
            "longitude": 50.50694
          },
          "name": "Madīnat Ḩamad",
          "population": 52718,
          "updatedAt": "2019-12-12T18:55:11.000Z"
        },
        {
          "ACL": null,
          "adminCode": "16",
          "cityId": 290340,
          "country": "Bahrain",
          "countryCode": "BH",
          "createdAt": "2019-12-12T18:55:11.001Z",
          "featureCode": "PPLC",
          "id": "2jpO6GLlcw",
          "location": {
            "latitude": 26.22787,
            "longitude": 50.58565
          },
          "name": "Manama",
          "population": 147074,
          "updatedAt": "2019-12-12T18:55:11.001Z"
        }
      ]
    }
  }
}