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

  1. Back4App
  2. 🇦🇺 Australia
Public

23
36
23
36
  • 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": "08",
          "cityId": 2057614,
          "country": "Australia",
          "countryCode": "AU",
          "createdAt": "2019-12-12T18:50:22.167Z",
          "featureCode": "PPL",
          "id": "fJ1miVAPcX",
          "location": {
            "latitude": -33.64592,
            "longitude": 115.03514
          },
          "name": "Yallingup",
          "population": 1059,
          "updatedAt": "2019-12-12T18:50:22.167Z"
        },
        {
          "ACL": null,
          "adminCode": "08",
          "cityId": 2057277,
          "country": "Australia",
          "countryCode": "AU",
          "createdAt": "2019-12-12T18:50:22.167Z",
          "featureCode": "PPL",
          "id": "41uZ0QJjol",
          "location": {
            "latitude": -31.88809,
            "longitude": 116.7678
          },
          "name": "York",
          "population": 2090,
          "updatedAt": "2019-12-12T18:50:22.167Z"
        },
        {
          "ACL": null,
          "adminCode": "08",
          "cityId": 2058682,
          "country": "Australia",
          "countryCode": "AU",
          "createdAt": "2019-12-12T18:50:22.167Z",
          "featureCode": "PPLX",
          "id": "PXrOKYFj78",
          "location": {
            "latitude": -31.93333,
            "longitude": 115.8
          },
          "name": "Wembley",
          "population": 9614,
          "updatedAt": "2019-12-12T18:50:22.167Z"
        }
      ]
    }
  }
}